mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Windows UI: Add INI option to allow emulator to start in fullscreen mode on launch.
This commit is contained in:
1 parent
48f0411743
commit
32bb4d7db5
3 files changed
+8
No files matched your search
@@ -113,6 +113,7 @@ void Config::Load(const char *iniFileName)
|
||||
graphics->Get("VertexCache", &bVertexCache, true);
|
||||
#ifdef _WIN32
|
||||
graphics->Get("FullScreen", &bFullScreen, false);
|
||||
graphics->Get("FullScreenOnLaunch", &bFullScreenOnLaunch, false);
|
||||
#endif
|
||||
#ifdef BLACKBERRY
|
||||
graphics->Get("PartialStretch", &bPartialStretch, pixel_xres == pixel_yres);
|
||||
@@ -233,6 +234,7 @@ void Config::Save()
|
||||
graphics->Set("VertexCache", bVertexCache);
|
||||
#ifdef _WIN32
|
||||
graphics->Set("FullScreen", bFullScreen);
|
||||
graphics->Set("FullScreenOnLaunch", &bFullScreenOnLaunch);
|
||||
#endif
|
||||
#ifdef BLACKBERRY
|
||||
graphics->Set("PartialStretch", bPartialStretch);
|
||||
|
||||
@@ -80,6 +80,9 @@ public:
|
||||
bool SSAntiAliasing; // for Windows, too
|
||||
bool bVertexCache;
|
||||
bool bFullScreen;
|
||||
#ifdef _WIN32
|
||||
bool bFullScreenOnLaunch;
|
||||
#endif
|
||||
int iAnisotropyLevel;
|
||||
bool bTrueColor;
|
||||
bool bFramebuffersToMem;
|
||||
|
||||
@@ -272,6 +272,9 @@ namespace MainWindow
|
||||
|
||||
Update();
|
||||
SetPlaying(0);
|
||||
|
||||
if(g_Config.bFullScreenOnLaunch)
|
||||
_ViewFullScreen(hwndMain);
|
||||
|
||||
ShowWindow(hwndMain, nCmdShow);
|
||||
|
||||
|
||||
Reference in new issue
Block a user