We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef2167 commit b3a06ffCopy full SHA for b3a06ff
1 file changed
gframe/game.cpp
@@ -2340,12 +2340,7 @@ void Game::SetWindowsIcon() {
2340
#endif
2341
}
2342
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
+ device->restoreWindow();
2349
device->setWindowSize(irr::core::dimension2du(GAME_WINDOW_WIDTH * scale, GAME_WINDOW_HEIGHT * scale));
2350
2351
void Game::FlashWindow() {
0 commit comments