Allow changing of zoom factor at runtime

This commit is contained in:
Henrik Rydgard committed 2012-12-17 21:06:47 +01:00
1 parent 34d28a9c5c
commit 11279668ca
5 files changed
+9 -9

No files matched your search

+3
View File
@@ -18,6 +18,7 @@
#include "main.h"
#include "../Core/Core.h"
#include "../Core/System.h"
#include "../Core/MemMap.h"
#include "EmuThread.h"
@@ -117,6 +118,8 @@ namespace MainWindow
GetWindowRectAtZoom(zoom, rc, rcOuter);
MoveWindow(hwndMain, rcOuter.left, rcOuter.top, rcOuter.right - rcOuter.left, rcOuter.bottom - rcOuter.top, TRUE);
MoveWindow(hwndDisplay, 0, 0, rc.right - rc.left, rc.bottom - rc.top, TRUE);
PSP_CoreParameter().pixelWidth = 480 * zoom;
PSP_CoreParameter().pixelHeight = 272 * zoom;
GL_Resized();
}