Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 27, 2017
1 parent 790c94c commit f72f347
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/dd_loop.cpp
Expand Up @@ -327,7 +327,7 @@ void DD_WaitForOptimalUpdateTime()

/// @var optimalDelta is integer on purpose: we're measuring time at a 1 ms accuracy,
/// so we can't use fractions of a millisecond.
duint const optimalDelta = (::maxFrameRate > 0 ? 1000 / ::maxFrameRate : 1);
duint const optimalDelta = duint(::maxFrameRate > 0? 1000/::maxFrameRate : 1);

if (Sys_IsShuttingDown()) return; // No need for finesse.

Expand Down
6 changes: 3 additions & 3 deletions doomsday/apps/client/src/ui/clientwindow.cpp
Expand Up @@ -923,7 +923,9 @@ void ClientWindow::drawWindowContent()

void ClientWindow::postDraw()
{
/// @note This method is called during the Canvas paintGL event.
/// @note This method is called during the GLWindow paintGL event.

BaseWindow::postDraw();

// OVR will handle presentation in Oculus Rift mode.
if (ClientApp::vr().mode() != VRConfig::OculusRift)
Expand All @@ -932,8 +934,6 @@ void ClientWindow::postDraw()
// swapped.
GL_FinishFrame();
}

BaseWindow::postDraw();
}

bool ClientWindow::setDefaultGLFormat() // static
Expand Down

0 comments on commit f72f347

Please sign in to comment.