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/client.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index 8b6af127..e2b1c264 100644 --- a/src/client.h +++ b/src/client.h @@ -33,6 +33,7 @@ #include +class Game; class Button; class Desktop; class LoginData; @@ -202,6 +203,8 @@ public: void event(Event::Channel channel, const Event &event); void action(const gcn::ActionEvent &event); + void resizeVideo(int width, int height); + private: void initRootDir(); void initHomeDir(); @@ -225,6 +228,7 @@ private: ServerInfo mCurrentServer; + Game *mGame; Window *mCurrentDialog; QuitDialog *mQuitDialog; Desktop *mDesktop; -- cgit v1.2.3-60-g2f50