mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02:50 +02:00
- fix retarded win32 bug in wxwidgets when in autoscreenshot mode when windows starts iconized getclientsize() returns garbage
This commit is contained in:
@@ -494,7 +494,19 @@ void MainWindow::onPaint(wxPaintEvent &event) {
|
||||
setupStartupSettings();
|
||||
}
|
||||
|
||||
// notice that we use GetSize() here and not GetClientSize() because
|
||||
// the latter doesn't return correct results for the minimized windows
|
||||
// (at least not under Windows)
|
||||
#if defined(WIN32)
|
||||
if(autoScreenShotAndExit == true) {
|
||||
renderer->reset(GetSize().x, GetSize().y, playerColor);
|
||||
}
|
||||
else {
|
||||
renderer->reset(GetClientSize().x, GetClientSize().y, playerColor);
|
||||
}
|
||||
#else
|
||||
renderer->reset(GetClientSize().x, GetClientSize().y, playerColor);
|
||||
#endif
|
||||
|
||||
renderer->transform(rotX, rotY, zoom);
|
||||
renderer->renderGrid();
|
||||
|
Reference in New Issue
Block a user