mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 09:19:05 +02:00
More work on control
This commit is contained in:
1 parent
afa21588d7
commit
634e324975
7 files changed
+46
-43
No files matched your search
@@ -108,14 +108,18 @@ namespace MainWindow
|
||||
|
||||
void GetWindowRectAtZoom(int zoom, RECT &rcInner, RECT &rcOuter) {
|
||||
// GetWindowRect(hwndMain, &rcInner);
|
||||
rcInner.left = g_Config.iWindowX;
|
||||
rcInner.top = g_Config.iWindowY;
|
||||
rcInner.left = 0;
|
||||
rcInner.top = 0;
|
||||
|
||||
rcInner.right=480*zoom + rcInner.left;//+client edge
|
||||
rcInner.bottom=272*zoom + rcInner.top; //+client edge
|
||||
rcInner.right=480*zoom;//+client edge
|
||||
rcInner.bottom=272*zoom; //+client edge
|
||||
|
||||
rcOuter=rcInner;
|
||||
AdjustWindowRect(&rcOuter, WS_OVERLAPPEDWINDOW, TRUE);
|
||||
rcOuter.right += g_Config.iWindowX - rcOuter.left;
|
||||
rcOuter.bottom += g_Config.iWindowY - rcOuter.top;
|
||||
rcOuter.left = g_Config.iWindowX;
|
||||
rcOuter.top = g_Config.iWindowY;
|
||||
}
|
||||
|
||||
void SavePosition() {
|
||||
|
||||
Reference in new issue
Block a user