From 8292b80eac900ec5dd75d184063b7b35934e800a Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 21 Jan 2012 12:30:36 +0100 Subject: Allow resizing of the game in windowed mode Window positions are semi-smartly corrected as a result of the resize. Not supported when using OpenGL on Windows for now. Reviewed-by: Yohann Ferreira Conflicts: src/client.cpp src/client.h src/game.cpp src/gui/gui.cpp src/gui/widgets/window.cpp --- src/graphics.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/graphics.h') diff --git a/src/graphics.h b/src/graphics.h index 4c47e690d..7fab02cbb 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -104,6 +104,11 @@ class Graphics : public gcn::SDLGraphics */ bool setFullscreen(bool fs); + /** + * Resize the window to the specified size. + */ + bool resize(int width, int height); + /** * Blits an image onto the screen. * -- cgit v1.2.3-60-g2f50