void SetWindowSize(int zoom) { AssertCurrentThreadName("Main"); RECT rc, rcOuter; // Actually, auto mode should be more granular... if (g_Config.IsPortrait()) { GetWindowRectAtResolution(272 * (int)zoom, 480 * (int)zoom, rc, rcOuter); } else { GetWindowRectAtResolution(480 * (int)zoom, 272 * (int)zoom, rc, rcOuter); } MoveWindow(hwndMain, rcOuter.left, rcOuter.top, rcOuter.right - rcOuter.left, rcOuter.bottom - rcOuter.top, TRUE); }
void SetWindowSize(int zoom) { AssertCurrentThreadName("Main"); // Actually, auto mode should be more granular... int width, height; if (g_Config.IsPortrait()) { GetWindowSizeAtResolution(272 * (int)zoom, 480 * (int)zoom, &width, &height); } else { GetWindowSizeAtResolution(480 * (int)zoom, 272 * (int)zoom, &width, &height); } g_Config.iWindowWidth = width; g_Config.iWindowHeight = height; MoveWindow(hwndMain, g_Config.iWindowX, g_Config.iWindowY, width, height, TRUE); }