Use video mode in window title.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
f66e46ec1d
commit
19c9193412
4 changed files with 29 additions and 3 deletions
|
@ -19,7 +19,7 @@
|
|||
};
|
||||
|
||||
extern TCHAR g_aVideoChoices[];
|
||||
extern char *g_apVideoModeDesc[ NUM_VIDEO_MODES ];
|
||||
extern const char *g_apVideoModeDesc[ NUM_VIDEO_MODES ];
|
||||
|
||||
enum VideoStyle_e
|
||||
{
|
||||
|
|
|
@ -394,6 +394,9 @@ void QApple::on_actionOptions_triggered()
|
|||
|
||||
void QApple::reloadOptions()
|
||||
{
|
||||
SetWindowTitle();
|
||||
myEmulatorWindow->setWindowTitle(QString::fromStdString(g_pAppTitle));
|
||||
|
||||
Paddle::instance() = GamepadPaddle::fromName(myOptions->gamepadName);
|
||||
AudioGenerator::instance().setOptions(myOptions->audioLatency, myOptions->silenceDelay, myOptions->volume);
|
||||
}
|
||||
|
@ -500,6 +503,9 @@ void QApple::on_actionNext_video_mode_triggered()
|
|||
if (g_eVideoType >= NUM_VIDEO_MODES)
|
||||
g_eVideoType = 0;
|
||||
|
||||
SetWindowTitle();
|
||||
myEmulatorWindow->setWindowTitle(QString::fromStdString(g_pAppTitle));
|
||||
|
||||
Config_Save_Video();
|
||||
VideoReinitialize();
|
||||
VideoRedrawScreen();
|
||||
|
|
|
@ -98,6 +98,14 @@ void SetWindowTitle()
|
|||
case A2TYPE_PRAVETS8A: g_pAppTitle = TITLE_PRAVETS_8A; break;
|
||||
case A2TYPE_TK30002E: g_pAppTitle = TITLE_TK3000_2E; break;
|
||||
}
|
||||
|
||||
g_pAppTitle += " - ";
|
||||
|
||||
if( IsVideoStyle(VS_HALF_SCANLINES) )
|
||||
{
|
||||
g_pAppTitle += " 50% ";
|
||||
}
|
||||
g_pAppTitle += g_apVideoModeDesc[ g_eVideoType ];
|
||||
}
|
||||
|
||||
void LoadConfiguration(void)
|
||||
|
@ -219,8 +227,8 @@ void LoadConfiguration(void)
|
|||
sg_Disk2Card.SetEnhanceDisk(dwEnhanceDisk ? true : false);
|
||||
}
|
||||
|
||||
#if 0
|
||||
Config_Load_Video();
|
||||
#if 0
|
||||
REGLOAD(TEXT("Uthernet Active"), &tfe_enabled);
|
||||
#endif
|
||||
SetCurrentCLK6502();
|
||||
|
|
|
@ -87,7 +87,19 @@ static VideoStyle_e g_eVideoStyle = VS_HALF_SCANLINES;
|
|||
|
||||
static bool g_bVideoScannerNTSC = true; // NTSC video scanning (or PAL)
|
||||
|
||||
static LPDIRECTDRAW g_lpDD = NULL;
|
||||
// NOTE: KEEP IN SYNC: VideoType_e g_aVideoChoices g_apVideoModeDesc
|
||||
// The window title will be set to this.
|
||||
const char *g_apVideoModeDesc[ NUM_VIDEO_MODES ] =
|
||||
{
|
||||
"Monochrome Monitor (Custom)"
|
||||
, "Color (RGB Monitor)"
|
||||
, "Color (NTSC Monitor)"
|
||||
, "Color TV"
|
||||
, "B&W TV"
|
||||
, "Amber Monitor"
|
||||
, "Green Monitor"
|
||||
, "White Monitor"
|
||||
};
|
||||
|
||||
static void videoCreateDIBSection();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue