From bae7cf1354ae09567e1cdd6d8207815b70f50dd1 Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Fri, 15 Aug 2008 03:12:18 +0000 Subject: [PATCH] Maybe quick fix for Windows git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@219 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp index a46cb21a0b..8a85fb51f5 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp @@ -482,6 +482,11 @@ void OpenGL_Update() ::MoveWindow(EmuWindow::GetWnd(), 0,0,width,height, FALSE); nBackbufferWidth = width; nBackbufferHeight = height; + float FactorW = (float)640 / (float)nBackbufferWidth; + float FactorH = (float)480 / (float)nBackbufferHeight; + + float Max = (FactorW < FactorH) ? FactorH : FactorW; + MValue = 1 / Max; /* u32 TmpAAx = (width / 640) - 1;