mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +00:00
Fixed untransformed grid being Y-inverted
This commit is contained in:
parent
83d3796da3
commit
24c28e921f
1 changed files with 5 additions and 3 deletions
|
@ -967,7 +967,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
pos.y = windowsize.Height - pos.y;
|
||||
|
||||
// Note: I'm not using Math.Ceiling in this case, because that doesn't work right.
|
||||
gridplotter.DrawGridLineH((int)pos.y, (int)Math.Round(from + 0.49999f), (int)Math.Round(to + 0.49999f), c);
|
||||
gridplotter.DrawGridLineH((int)pos.y, (int)from, (int)to, c);
|
||||
}
|
||||
|
||||
// Draw all vertical grid lines
|
||||
|
@ -984,9 +984,11 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
|
||||
pos.x = x;
|
||||
pos = pos.GetTransformed(translatex, translatey, scale, -scale);
|
||||
from = windowsize.Height - from;
|
||||
to = windowsize.Height - to;
|
||||
|
||||
// Note: I'm not using Math.Ceiling in this case, because that doesn't work right.
|
||||
gridplotter.DrawGridLineV((int)pos.x, (int)Math.Round(from + 0.49999f), (int)Math.Round(to + 0.49999f), c);
|
||||
// Note: I'm not using Math.Ceiling in this case, because that doesn't work right.
|
||||
gridplotter.DrawGridLineV((int)pos.x, (int)from, (int)to, c);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue