X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=source%2Fgles2rice%2Fsrc%2FOGLGraphicsContext.cpp;h=3be9fc0773f145a4fa595c08a4db6883d935171e;hb=ca22e7b76883b946060a6b40bb8709c1981e1cf6;hp=ab394f18cdb7fa4ff69d9a16610a186994314e2c;hpb=468fb36e8cf80df8bbff5d2ad1b800556c010868;p=mupen64plus-pandora.git diff --git a/source/gles2rice/src/OGLGraphicsContext.cpp b/source/gles2rice/src/OGLGraphicsContext.cpp index ab394f1..3be9fc0 100644 --- a/source/gles2rice/src/OGLGraphicsContext.cpp +++ b/source/gles2rice/src/OGLGraphicsContext.cpp @@ -113,7 +113,11 @@ bool COGLGraphicsContext::Initialize(uint32 dwWidth, uint32 dwHeight, BOOL bWind /* Set the video mode */ m64p_video_mode ScreenMode = bWindowed ? M64VIDEO_WINDOWED : M64VIDEO_FULLSCREEN; m64p_video_flags flags = M64VIDEOFLAG_SUPPORT_RESIZING; +#if 1 + if (CoreVideo_SetVideoMode(800, windowSetting.uDisplayHeight, colorBufferDepth, ScreenMode, flags) != M64ERR_SUCCESS) +#else if (CoreVideo_SetVideoMode(windowSetting.uDisplayWidth, windowSetting.uDisplayHeight, colorBufferDepth, ScreenMode, flags) != M64ERR_SUCCESS) +#endif { DebugMessage(M64MSG_ERROR, "Failed to set %i-bit video mode: %ix%i", colorBufferDepth, (int)windowSetting.uDisplayWidth, (int)windowSetting.uDisplayHeight); CoreVideo_Quit();