Quick viewport fix for fullscreen mode

This commit is contained in:
raven02 committed 2012-12-18 19:56:35 +08:00
1 parent bf0792e42a
commit 478c5074e4
1 file changed
+8 -2
+8 -2
View File
@@ -469,10 +469,16 @@ namespace MainWindow
UpdateMenus();
break;
case ID_OPTIONS_FULLSCREEN:
if(g_bFullScreen)
if(g_bFullScreen) {
_ViewNormal(hWnd);
else
SetZoom(1); //restore window to original size
}
else {
int cx = ::GetSystemMetrics(SM_CXSCREEN);
float screenfactor = cx / 480.0f;
SetZoom(screenfactor);
_ViewFullScreen(hWnd);
}
break;
case ID_OPTIONS_DISPLAYRAWFRAMEBUFFER: