mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Quick viewport fix for fullscreen mode
This commit is contained in:
1 parent
bf0792e42a
commit
478c5074e4
1 file changed
+8
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user