X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Frice_gles%2Fsrc%2FConfig.cpp;h=da025e7ee32292a9b93c653e9ba81ad9571e26c6;hb=e18935a73fdf12c93fc3b6668b40cee2f8c90df2;hp=a7493570ddc423787c5d3373c63b58c58046faa2;hpb=6ac88641e446ee9d85b928769d7b7055318152c4;p=mupen64plus-pandora.git diff --git a/source/rice_gles/src/Config.cpp b/source/rice_gles/src/Config.cpp index a749357..da025e7 100755 --- a/source/rice_gles/src/Config.cpp +++ b/source/rice_gles/src/Config.cpp @@ -431,10 +431,16 @@ static void ReadConfiguration(void) { windowSetting.bDisplayFullscreen = ConfigGetParamBool(l_ConfigVideoGeneral, "Fullscreen"); windowSetting.uDisplayWidth = ConfigGetParamInt(l_ConfigVideoGeneral, "ScreenWidth"); -#ifdef HAVE_GLES - if (windowSetting.uDisplayWidth==800) - windowSetting.uDisplayWidth = 640; // no strech -#endif + windowSetting.bDisplayRatio = true; + windowSetting.uDisplayX = 0; + windowSetting.uDisplayY = 0; + windowSetting.bDisplayRatio = ConfigGetParamBool(l_ConfigVideoGeneral, "AspectRatio"); + if (windowSetting.bDisplayRatio) { + if (windowSetting.uDisplayWidth==800) { + windowSetting.uDisplayWidth = 640; // no strech + windowSetting.uDisplayX = 80; + } + } windowSetting.uDisplayHeight = ConfigGetParamInt(l_ConfigVideoGeneral, "ScreenHeight"); windowSetting.bVerticalSync = ConfigGetParamBool(l_ConfigVideoGeneral, "VerticalSync");