- allow changing screen resolution and fullscreen mode in options menu with confirmation

This commit is contained in:
Mark Vejvoda
2013-01-01 10:18:42 +00:00
parent f8ef92213d
commit 46869536bb
4 changed files with 145 additions and 31 deletions

View File

@@ -62,6 +62,8 @@ void PlatformContextGl::init(int colorBits, int depthBits, int stencilBits,
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
//printf("In [%s::%s %d] PlatformCommon::Private::shouldBeFullscreen = %d\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,PlatformCommon::Private::shouldBeFullscreen);
int flags = SDL_OPENGL;
if(PlatformCommon::Private::shouldBeFullscreen) {
flags |= SDL_FULLSCREEN;