+ return closest;
+}
+
+const VideoMode *Display::find_mode(unsigned width, unsigned height) const
+{
+ return find_mode(VideoMode(width, height));
+}
+
+void Display::window_got_focus(Window &w)
+{
+ focus_window = &w;
+}
+
+void Display::window_lost_focus()
+{
+ focus_window = 0;