mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
Return old code for grid drawing on the renderer side
This commit is contained in:
parent
4cb6d68c45
commit
bd967138f2
3 changed files with 4 additions and 6 deletions
Binary file not shown.
|
@ -968,9 +968,8 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
pos.y = y;
|
||||
pos = pos.GetTransformed(translatex, translatey, scale, -scale);
|
||||
|
||||
// Note: I'm not using Math.Ceiling in this case, because that doesn't work right.
|
||||
gridplotter.DrawGridLineH((int)pos.y, (int)from, (int)to, ref c);
|
||||
}
|
||||
gridplotter.DrawGridLineH((int)pos.y, (int)Math.Round(from + 0.49999f), (int)Math.Round(to + 0.49999f), ref c);
|
||||
}
|
||||
|
||||
// Draw all vertical grid lines
|
||||
float xstart = ltpos.x > General.Map.Config.LeftBoundary ? ltpos.x : General.Map.Config.LeftBoundary;
|
||||
|
@ -987,9 +986,8 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
pos.x = x;
|
||||
pos = pos.GetTransformed(translatex, translatey, scale, -scale);
|
||||
|
||||
// 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, ref c);
|
||||
}
|
||||
gridplotter.DrawGridLineV((int)pos.x, (int)Math.Round(from + 0.49999f), (int)Math.Round(to + 0.49999f), ref c);
|
||||
}
|
||||
}
|
||||
|
||||
//mxd
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue