From 1a9f2d9342428c4f471c92daf06807dda77f85f8 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 19 Mar 2021 19:51:36 -0700 Subject: [PATCH] Add flipme attribute to textboxclass Instead of calculating the y-position of the text box when it's created, we will store a flag that says whether or not the text box should be flipped in Flip Mode (and thus stay right-side-up), and when it comes time to draw the text box, we will check Flip Mode and calculate the position then. --- desktop_version/src/Graphics.cpp | 29 ++++++++++++++++++----------- desktop_version/src/Textbox.cpp | 2 ++ desktop_version/src/Textbox.h | 2 ++ 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 4b6cea70..6a2773aa 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -833,6 +833,7 @@ void Graphics::drawgui(void) for (size_t i = 0; i