Skip to content

Commit b3a06ff

Browse files
authored
update Game::SetWindowsScale to use device->restoreWindow (#3085)
1 parent 8ef2167 commit b3a06ff

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

gframe/game.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,12 +2340,7 @@ void Game::SetWindowsIcon() {
23402340
#endif
23412341
}
23422342
void Game::SetWindowsScale(float scale) {
2343-
#ifdef _WIN32
2344-
WINDOWPLACEMENT plc;
2345-
plc.length = sizeof(WINDOWPLACEMENT);
2346-
if(GetWindowPlacement(hWnd, &plc) && (plc.showCmd == SW_SHOWMAXIMIZED))
2347-
ShowWindow(hWnd, SW_RESTORE);
2348-
#endif
2343+
device->restoreWindow();
23492344
device->setWindowSize(irr::core::dimension2du(GAME_WINDOW_WIDTH * scale, GAME_WINDOW_HEIGHT * scale));
23502345
}
23512346
void Game::FlashWindow() {

0 commit comments

Comments
 (0)