From: Mikko Rasa Date: Wed, 12 Sep 2012 08:20:58 +0000 (+0300) Subject: Provide access to the desktop mode X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f608cc1e681e16e21325df56cb96d3f17a348e21;p=libs%2Fgui.git Provide access to the desktop mode This allows an application to default to the desktop resolution in a reliable way. --- diff --git a/source/graphics/display.h b/source/graphics/display.h index b47a550..83b1853 100644 --- a/source/graphics/display.h +++ b/source/graphics/display.h @@ -50,6 +50,7 @@ public: void remove_window(Window &); const std::list &get_modes() const { return modes; } + const VideoMode &get_desktop_mode() const { return orig_mode; } void set_mode(const VideoMode &); void restore_mode() { set_mode(orig_mode); }