More work on control

This commit is contained in:
Henrik Rydgard committed 2013-03-31 00:39:58 +01:00
1 parent afa21588d7
commit 634e324975
7 files changed
+46 -43

No files matched your search

+8 -4
View File
@@ -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() {