From 12f634007c617e0fc3c7b8c5991f5310ea1b22b0 Mon Sep 17 00:00:00 2001 From: Javidx9 <25419386+OneLoneCoder@users.noreply.github.com> Date: Fri, 25 Mar 2022 11:45:23 +0000 Subject: [PATCH] TransformedView PGEX 1.06 Fix for bug that creeped in --- Extensions/olcPGEX_TransformedView.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Extensions/olcPGEX_TransformedView.h b/Extensions/olcPGEX_TransformedView.h index 5fdd639..d5641ca 100644 --- a/Extensions/olcPGEX_TransformedView.h +++ b/Extensions/olcPGEX_TransformedView.h @@ -3,7 +3,7 @@ +-------------------------------------------------------------+ | OneLoneCoder Pixel Game Engine Extension | - | Transformed View v1.05 | + | Transformed View v1.06 | +-------------------------------------------------------------+ NOTE: UNDER ACTIVE DEVELOPMENT - THERE ARE BUGS/GLITCHES @@ -70,6 +70,7 @@ Removed unused "range" facility in TileTransformView 1.04: Added DrawPolygonDecal() for arbitrary polygons 1.05: Clipped DrawSprite() to visible area, massive performance increase + 1.06: Fixed error in DrawLine() - Thanks CraisyDaisyRecords (& Fern)! */ #pragma once @@ -375,7 +376,7 @@ namespace olc void TransformedView::DrawLine(float x1, float y1, float x2, float y2, olc::Pixel p, uint32_t pattern) { - DrawLine({ x1, y2 }, { x2, y2 }, p, pattern); + DrawLine({ x1, y1 }, { x2, y2 }, p, pattern); } void TransformedView::DrawLine(const olc::vf2d & pos1, const olc::vf2d & pos2, olc::Pixel p, uint32_t pattern)