+void Window::set_fullscreen_mode()
+{
+ if(!options.fullscreen_monitor)
+ options.fullscreen_monitor = display.get_desktop_mode().monitor;
+ VideoMode mode(options.width, options.height);
+ mode.monitor = options.fullscreen_monitor;
+ mode.rotation = mode.monitor->desktop_settings.rotation;
+ if(mode.rotation==ROTATE_LEFT || mode.rotation==ROTATE_RIGHT)
+ swap(mode.width, mode.height);
+ display.set_mode(mode, options.fullscreen_exclusive);
+}
+