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.
This commit is contained in:
Misa
2021-03-19 19:51:36 -07:00
committed by Ethan Lee
parent 2ac13815e4
commit 1a9f2d9342
3 changed files with 22 additions and 11 deletions

View File

@@ -21,6 +21,8 @@ textboxclass::textboxclass(void)
tg = 0;
tb = 0;
max = 0;
flipme = false;
}
void textboxclass::centerx(void)