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.
pull/130/head
mediumlarry 5 years ago committed by GitHub
parent 09080544cb
commit be26f9ba45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Videos/OneLoneCoder_PGE_Polymorphism.cpp

@ -60,7 +60,7 @@
Author Author
~~~~~~ ~~~~~~
David Barr, aka javidx9, ©OneLoneCoder 2019 David Barr, aka javidx9, ©OneLoneCoder 2019
*/ */
#define OLC_PGE_APPLICATION #define OLC_PGE_APPLICATION
@ -523,7 +523,7 @@ public:
DrawCircle(sx, sy, 3, olc::YELLOW); DrawCircle(sx, sy, 3, olc::YELLOW);
// Draw Cursor Position // 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; return true;
} }
}; };

Loading…
Cancel
Save