From 387b6111adb21ca73a1be3dfe26139a4fd4a876c Mon Sep 17 00:00:00 2001 From: codeimp Date: Thu, 9 Apr 2009 08:26:05 +0000 Subject: [PATCH] Fixed bug that causes the grid to be incorrect after opening/closing the info panel --- Source/Rendering/Renderer2D.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Rendering/Renderer2D.cs b/Source/Rendering/Renderer2D.cs index f099a0bc..807bb2e5 100644 --- a/Source/Rendering/Renderer2D.cs +++ b/Source/Rendering/Renderer2D.cs @@ -442,6 +442,13 @@ namespace CodeImp.DoomBuilder.Rendering stream.WriteRange(verts); screenverts.Unlock(); stream.Dispose(); + + // Force update of view + lastgridscale = -1f; + lastgridsize = 0; + lastgridx = 0.0f; + lastgridy = 0.0f; + UpdateTransformations(); } // This makes screen vertices for display