From c4bdf324d7d464bc7fabbf88e1a6e66701c6e7cb 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 --- 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 4fec02f8..5e39d510 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -92,6 +92,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-70-g09d2