I'm such an idiot, I forgot to map the window! Also, slight reordering to make things theoretically more efficient.

This commit is contained in:
Ben Anderson
2005-03-13 22:40:41 +00:00
parent 634e0a5b28
commit 907bfa03eb
@@ -74,6 +74,10 @@ CString LowLevelWindow_X11::TryVideoMode(RageDisplay::VideoModeParams p, bool &b
ctxt = glXCreateContext(X11Helper::Dpy(), xvi, NULL, True);
glXMakeCurrent(X11Helper::Dpy(), X11Helper::Win(), ctxt);
XMapWindow(X11Helper::Dpy(), X11Helper::Win() );
// HACK: Wait for the MapNotify event, without spinning and
// eating CPU unnecessarily, and without smothering other
// events. Do this by grabbing all events, remembering
@@ -94,8 +98,6 @@ CString LowLevelWindow_X11::TryVideoMode(RageDisplay::VideoModeParams p, bool &b
X11Helper::CloseMask(StructureNotifyMask);
glXMakeCurrent(X11Helper::Dpy(), X11Helper::Win(), ctxt);
windowIsOpen = true;
} else { bNewDeviceOut = false; }