From d9e61cffac10187ab991297b610c46c494db9b64 Mon Sep 17 00:00:00 2001 From: elasota Date: Fri, 27 Dec 2019 23:02:22 -0500 Subject: [PATCH] Fix Y-inverted lines not drawing --- PortabilityLayer/PLQDraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PortabilityLayer/PLQDraw.cpp b/PortabilityLayer/PLQDraw.cpp index a71c843..d648bcd 100644 --- a/PortabilityLayer/PLQDraw.cpp +++ b/PortabilityLayer/PLQDraw.cpp @@ -179,7 +179,7 @@ static void PlotLine(PortabilityLayer::QDState *qdState, PortabilityLayer::QDPor PortabilityLayer::LinePlotter plotter; plotter.Reset(upperPoint, lowerPoint); - PortabilityLayer::Vec2i currentPoint = pointA; + PortabilityLayer::Vec2i currentPoint = upperPoint; while (currentPoint.m_x < constrainedRect.left || currentPoint.m_y < constrainedRect.top || currentPoint.m_x >= constrainedRect.right) { PortabilityLayer::PlotDirection plotDir = plotter.PlotNext();