From bd967138f241b62260b7973b90f751b603552595 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Mon, 16 Dec 2019 08:32:01 +0200 Subject: [PATCH] Return old code for grid drawing on the renderer side --- Build/Updater.exe | Bin 192000 -> 192000 bytes Source/Core/Rendering/Renderer2D.cs | 10 ++++------ .../VisplaneExplorer/Resources/vpo.dll | Bin 178176 -> 178176 bytes 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Build/Updater.exe b/Build/Updater.exe index 07981dfb36cc2afa53841557ae09cbf5def374da..d9b62a2afb33cabf7ac27cef34bdb68b79fe9a95 100755 GIT binary patch delta 46 zcmV+}0MY+|+zWu*3y_Edf)Dqxi^)$Az#6bhGwz>3l`yF2c_3rvgJe*LWKaROWKaT} Eo%!t)`v3p{ delta 46 zcmV+}0MY+|+zWu*3y_EdgYx#Vi^)$A#Wtuw@Sq|^o`;%%TgnE6gJe*LWKaROWKaT} Eofz{Kng9R* diff --git a/Source/Core/Rendering/Renderer2D.cs b/Source/Core/Rendering/Renderer2D.cs index 1c8b8404..23ad6721 100755 --- a/Source/Core/Rendering/Renderer2D.cs +++ b/Source/Core/Rendering/Renderer2D.cs @@ -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 diff --git a/Source/Plugins/VisplaneExplorer/Resources/vpo.dll b/Source/Plugins/VisplaneExplorer/Resources/vpo.dll index 682892d38836c7dbe6ef0af0ee328d599f9fe5b4..cefce4e448f4dfffbdacbc60a6e27d4e29a4f54a 100755 GIT binary patch delta 97 zcmZqpz}4`9Yl8qI^Awfu&BBcB!i$G`xT r+wPpmRLLq(k+OHo-UbuDJ?+L1&b_Ry*nTFBsX_{5+IIIwrk!R0bLSud delta 97 zcmZqpz}4`9Yl8qI^UfdNnuQtLg&7&Q3o|kaCddN?Vi|yd35ZjGct;r%!;Ul%kAVRw rx7|6BsghNoxXHSH!jkpQ+txj(j*QwBvi(dNQ-u`BwC(PVOgqg0Dd{69