Skip to content

Commit

Permalink
Properly call the wxWidgets methods in forceRedraw()
Browse files Browse the repository at this point in the history
Invoke Refresh() first before calling Update() to redraw
unconditionally.
  • Loading branch information
codereader committed Dec 26, 2016
1 parent 4ac1910 commit f7fcdc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions radiant/camera/CamWnd.cpp
Expand Up @@ -1109,6 +1109,7 @@ void CamWnd::forceRedraw()
return;
}

_wxGLWidget->Refresh(false);
_wxGLWidget->Update();
}

Expand Down
1 change: 1 addition & 0 deletions radiant/xyview/XYWnd.cpp
Expand Up @@ -258,6 +258,7 @@ void XYWnd::forceRedraw()
return;
}

_wxGLWidget->Refresh(false);
_wxGLWidget->Update();
}

Expand Down

0 comments on commit f7fcdc8

Please sign in to comment.