mirror of https://github.com/odrling/Aegisub
Fix rendering errors with the cross visual tool and detached video
Originally committed to SVN as r5977.
This commit is contained in:
parent
ffa811c8bc
commit
1a68f12dcb
|
@ -70,9 +70,9 @@ void VisualToolCross::Draw() {
|
||||||
gl.SetLineColour(*wxWHITE, 1.0, 1);
|
gl.SetLineColour(*wxWHITE, 1.0, 1);
|
||||||
float lines[] = {
|
float lines[] = {
|
||||||
0.f, mouse_pos.Y(),
|
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(), 0.f,
|
||||||
mouse_pos.X(), video_res.Y()
|
mouse_pos.X(), video_res.Y() + video_pos.Y() * 2
|
||||||
};
|
};
|
||||||
gl.DrawLines(2, lines, 4);
|
gl.DrawLines(2, lines, 4);
|
||||||
gl.ClearInvert();
|
gl.ClearInvert();
|
||||||
|
|
Loading…
Reference in New Issue