Fix rendering errors with the cross visual tool and detached video

Originally committed to SVN as r5977.
This commit is contained in:
Thomas Goyne 2011-12-06 20:07:57 +00:00
parent ffa811c8bc
commit 1a68f12dcb
1 changed files with 2 additions and 2 deletions

View File

@ -70,9 +70,9 @@ void VisualToolCross::Draw() {
gl.SetLineColour(*wxWHITE, 1.0, 1);
float lines[] = {
0.f, mouse_pos.Y(),
video_res.X(), mouse_pos.Y(),
video_res.X() + video_pos.X() * 2, mouse_pos.Y(),
mouse_pos.X(), 0.f,
mouse_pos.X(), video_res.Y()
mouse_pos.X(), video_res.Y() + video_pos.Y() * 2
};
gl.DrawLines(2, lines, 4);
gl.ClearInvert();