From f608cc1e681e16e21325df56cb96d3f17a348e21 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 12 Sep 2012 11:20:58 +0300 Subject: [PATCH] Provide access to the desktop mode This allows an application to default to the desktop resolution in a reliable way. --- source/graphics/display.h | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.45.2