From be26f9ba45b8c609e0db8d1f068c067a0ef58902 Mon Sep 17 00:00:00 2001 From: mediumlarry <66408471+mediumlarry@users.noreply.github.com> Date: Thu, 4 Jun 2020 11:38:13 +0200 Subject: [PATCH] Display vCursor.y value in the top left corner The vCursor.x value was shown twice in the top left corner of the CAD application. Replaced it with the y value. --- Videos/OneLoneCoder_PGE_Polymorphism.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Videos/OneLoneCoder_PGE_Polymorphism.cpp b/Videos/OneLoneCoder_PGE_Polymorphism.cpp index 424e2a1..e090a0f 100644 --- a/Videos/OneLoneCoder_PGE_Polymorphism.cpp +++ b/Videos/OneLoneCoder_PGE_Polymorphism.cpp @@ -60,7 +60,7 @@ Author ~~~~~~ - David Barr, aka javidx9, ©OneLoneCoder 2019 + David Barr, aka javidx9, ©OneLoneCoder 2019 */ #define OLC_PGE_APPLICATION @@ -523,7 +523,7 @@ public: DrawCircle(sx, sy, 3, olc::YELLOW); // Draw Cursor Position - DrawString(10, 10, "X=" + std::to_string(vCursor.x) + ", Y=" + std::to_string(vCursor.x), olc::YELLOW, 2); + DrawString(10, 10, "X=" + std::to_string(vCursor.x) + ", Y=" + std::to_string(vCursor.y), olc::YELLOW, 2); return true; } };