visual tools: Fix grid in RotateXY tool

Fix the grid scaling when the video is not at 100% zoom, and scale the
grid with \fscx / \fscy .
This commit is contained in:
arch1t3cht 2023-01-14 14:20:24 +01:00
parent ddfd4501f0
commit 4c2b47d5de

View file

@ -49,7 +49,9 @@ void VisualToolRotateXY::Draw() {
// Transform grid
gl.SetOrigin(org->pos);
gl.SetScale(100 * video_res / script_res);
gl.SetRotation(angle_x, angle_y, angle_z);
gl.SetScale(fsc);
gl.SetShear(fax, fay);
// Draw grid
@ -197,4 +199,5 @@ void VisualToolRotateXY::DoRefresh() {
GetLineRotation(active_line, angle_x, angle_y, angle_z);
GetLineShear(active_line, fax, fay);
GetLineScale(active_line, fsc);
}