diff -r ecb243eebc25 -r e74c1820fbd2 src/Graphics.hh --- a/src/Graphics.hh Tue Jan 13 16:11:37 2009 +0000 +++ b/src/Graphics.hh Tue Jan 13 20:17:03 2009 +0200 @@ -37,12 +37,24 @@ CL_Font simple_font; public: - Graphics (Engine &engine, GameState &state); + Graphics (Engine &engine, GameState &state, PixelCoordinate resolution, bool fullscreen); CL_Font& getSimpleFont (void) { return simple_font; } + + static const std::vector & getDisplayModes (void); private: + /** + * Reads current input events from Input and applies them, using LocalPlayer::handleInput and + * Graphics::handle_input. + */ void check_input (void); + + /** + * Handles GuiInput flags read from Input. + */ + void handle_input (GuiInput flags); + void do_redraw (void); void on_update (TimeMS tick_length);