Integrated suggested changes for issue #649

This commit is contained in:
harry 2023-06-18 18:11:03 -04:00
parent 530fec6aff
commit 99bb679ac5
1 changed files with 17 additions and 4 deletions

View File

@ -204,10 +204,23 @@ consoleWin_t::consoleWin_t(QWidget *parent)
}
g_config->getOption( "SDL.WinPosX" , &xWinPos );
g_config->getOption( "SDL.WinPosY" , &yWinPos );
g_config->getOption( "SDL.WinSizeX", &xWinSize );
g_config->getOption( "SDL.WinSizeY", &yWinSize );
SDL_DisplayMode mode;
int sdl_err = SDL_GetCurrentDisplayMode(0,&mode);
g_config->getOption( "SDL.Fullscreen", &setFullScreen );
if( (sdl_err == 0) && setFullScreen )
{
xWinPos = 0;
yWinPos = 0;
xWinSize = mode.w;
yWinSize = mode.h;
}
else
{
g_config->getOption( "SDL.WinPosX" , &xWinPos );
g_config->getOption( "SDL.WinPosY" , &yWinPos );
g_config->getOption( "SDL.WinSizeX", &xWinSize );
g_config->getOption( "SDL.WinSizeY", &yWinSize );
}
if ( (xWinSize >= 256) && (yWinSize >= 224) )
{