X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Frice_gles%2Fsrc%2FConfig.cpp;h=da025e7ee32292a9b93c653e9ba81ad9571e26c6;hb=f18a2655e53ab6340888091f0e7ee0d1ec62d8d1;hp=db552551bcc154c4918ca17b9dd929981651fe95;hpb=d07c171fa694cae985ad7045f9ce2b2f1a5699b4;p=mupen64plus-pandora.git diff --git a/source/rice_gles/src/Config.cpp b/source/rice_gles/src/Config.cpp index db55255..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_GLES0 - 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");