]> git.tdb.fi Git - libs/gui.git/commitdiff
Provide access to the desktop mode
authorMikko Rasa <tdb@tdb.fi>
Wed, 12 Sep 2012 08:20:58 +0000 (11:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 12 Sep 2012 08:20:58 +0000 (11:20 +0300)
This allows an application to default to the desktop resolution in a
reliable way.

source/graphics/display.h

index b47a550bf3c962b7e0cb5117cc324108d2049f3a..83b18532148c6cc01cafa9547539e9ec80091fa0 100644 (file)
@@ -50,6 +50,7 @@ public:
        void remove_window(Window &);
 
        const std::list<VideoMode> &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); }