Skip to content

Commit

Permalink
GL: Always do manual OpenGL painting in fullscreen
Browse files Browse the repository at this point in the history
It seems no platform-specific exceptions are needed when drawing
with updateGL().
  • Loading branch information
skyjake committed May 10, 2012
1 parent adf4464 commit 980453d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions doomsday/engine/portable/src/window.cpp
Expand Up @@ -1308,17 +1308,10 @@ boolean Window_IsMouseTrapped(const Window* wnd)

boolean Window_ShouldRepaintManually(const Window* wnd)
{
//#if defined(WIN32) || defined(MACOSX)

// When the pointer is not grabbed, allow the system to regulate window
// updates (e.g., for window manipulation).
if(Window_IsFullscreen(wnd)) return true;
return !Mouse_IsPresent() || Window_IsMouseTrapped(wnd);

/*#else
// X11 does not like manual repainting.
DENG_UNUSED(wnd);
return false;
#endif*/
}

void Window_UpdateCanvasFormat(Window* wnd)
Expand Down

0 comments on commit 980453d

Please sign in to comment.