From 33b888e5d2d52ffbc18a6af17b3452f260112199 Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Wed, 25 Dec 2019 01:54:05 +0100 Subject: [PATCH] Renderer2D.PlotLine now transforms the y coordinate so that linedefs in nodes viewer, automap/sound environment/sound propagation mode are not flipped upside down anymore. Fixes #325. --- Source/Core/Rendering/Renderer2D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Rendering/Renderer2D.cs b/Source/Core/Rendering/Renderer2D.cs index f2c868fb..b29deda2 100755 --- a/Source/Core/Rendering/Renderer2D.cs +++ b/Source/Core/Rendering/Renderer2D.cs @@ -2032,7 +2032,7 @@ namespace CodeImp.DoomBuilder.Rendering if((v2 - v1).GetLengthSq() < linenormalsize * lengthscaler) return; // Draw line - plotter.DrawLineSolid((int)v1.x, (int)v1.y, (int)v2.x, (int)v2.y, ref c); + plotter.DrawLineSolid((int)v1.x, TransformY((int)v1.y), (int)v2.x, TransformY((int)v2.y), ref c); } private Vector2D TransformY(Vector2D v)