1
0
Fork 0

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
1 changed files with 3 additions and 0 deletions

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);
}