X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fgles2rice%2Fsrc%2FConfig.cpp;h=7ac7295a421dfc23cfffb82f957f7a234329cb16;hb=f8c31034f942f1361d0435c01fda7c0f4a7231a0;hp=125be0b19d48b3ec4fc1e2fccb5769700331dd53;hpb=292f9317f53c38c181439013be7276f86517fd6b;p=mupen64plus-pandora.git diff --git a/source/gles2rice/src/Config.cpp b/source/gles2rice/src/Config.cpp old mode 100644 new mode 100755 index 125be0b..7ac7295 --- a/source/gles2rice/src/Config.cpp +++ b/source/gles2rice/src/Config.cpp @@ -313,6 +313,9 @@ BOOL InitConfiguration(void) ConfigSetDefaultBool(l_ConfigVideoGeneral, "Fullscreen", 0, "Use fullscreen mode if True, or windowed mode if False "); ConfigSetDefaultInt(l_ConfigVideoGeneral, "ScreenWidth", 640, "Width of output window or fullscreen width"); ConfigSetDefaultInt(l_ConfigVideoGeneral, "ScreenHeight", 480, "Height of output window or fullscreen height"); +#if 1 + ConfigSetDefaultBool(l_ConfigVideoGeneral, "AspectRatio", 1, "If true, use correct aspect ratio, if false, stretch to fullscreen"); +#endif ConfigSetDefaultBool(l_ConfigVideoGeneral, "VerticalSync", 0, "If true, activate the SDL_GL_SWAP_CONTROL attribute"); ConfigSetDefaultInt(l_ConfigVideoRice, "FrameBufferSetting", FRM_BUF_NONE, "Frame Buffer Emulation (0=ROM default, 1=disable)"); @@ -429,6 +432,18 @@ static void ReadConfiguration(void) { windowSetting.bDisplayFullscreen = ConfigGetParamBool(l_ConfigVideoGeneral, "Fullscreen"); windowSetting.uDisplayWidth = ConfigGetParamInt(l_ConfigVideoGeneral, "ScreenWidth"); +#if 1 + 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; + } + } +#endif windowSetting.uDisplayHeight = ConfigGetParamInt(l_ConfigVideoGeneral, "ScreenHeight"); windowSetting.bVerticalSync = ConfigGetParamBool(l_ConfigVideoGeneral, "VerticalSync"); @@ -460,6 +475,8 @@ static void ReadConfiguration(void) options.bShowFPS = ConfigGetParamBool(l_ConfigVideoRice, "ShowFPS"); options.mipmapping = ConfigGetParamInt(l_ConfigVideoRice, "Mipmapping"); + //*SEB* Force to 0 has other setting crash on the Pandora + options.mipmapping = TEXTURE_NO_MIPMAP; options.fogMethod = ConfigGetParamInt(l_ConfigVideoRice, "FogMethod"); options.forceTextureFilter = ConfigGetParamInt(l_ConfigVideoRice, "ForceTextureFilter"); options.textureEnhancement = ConfigGetParamInt(l_ConfigVideoRice, "TextureEnhancement"); @@ -470,7 +487,9 @@ static void ReadConfiguration(void) options.colorQuality = ConfigGetParamInt(l_ConfigVideoRice, "ColorQuality"); options.OpenglRenderSetting = ConfigGetParamInt(l_ConfigVideoRice, "OpenGLRenderSetting"); options.anisotropicFiltering = ConfigGetParamInt(l_ConfigVideoRice, "AnisotropicFiltering"); - + //*SEB* Force to 0 has mipmapping is already forced to 0 + options.anisotropicFiltering = 0; + CDeviceBuilder::SelectDeviceType((SupportedDeviceType)options.OpenglRenderSetting); status.isMMXSupported = isMMXSupported();