diff options
-rw-r--r-- | src/client.h | 3 | ||||
-rw-r--r-- | src/game.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h index 29059e83a..5c9dfdaa1 100644 --- a/src/client.h +++ b/src/client.h @@ -258,6 +258,9 @@ public: static std::string getServerName() { return instance()->mServerName; } + static void resize(int width, int height) + { instance()->resizeVideo(width, height); } + static void setGuiAlpha(float n); static float getGuiAlpha(); diff --git a/src/game.cpp b/src/game.cpp index 70468ebfd..b6e956c98 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1638,7 +1638,7 @@ void Game::handleInput() if (event.type == SDL_VIDEORESIZE) { // Let the client deal with this one (it'll pass down from there) - Client::instance()->resizeVideo(event.resize.w, event.resize.h); + Client::resize(event.resize.w, event.resize.h); } // Keyboard events (for discontinuous keys) else if (event.type == SDL_KEYDOWN) |