summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 7d887436..8e144e8e 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1339,12 +1339,9 @@ void Client::checkGraphicsSize()
const int width = graphics->getWidth();
const int height = graphics->getHeight();
- const auto guiTop = gui->getTop();
- if (guiTop->getWidth() == width && guiTop->getHeight() == height)
+ if (!gui->videoResized(width, height))
return;
- gui->videoResized(width, height);
-
if (mDesktop)
mDesktop->setSize(width, height);