diff --git a/desktop_version/src/Textbox.cpp b/desktop_version/src/Textbox.cpp index 3d829980..ba65e54c 100644 --- a/desktop_version/src/Textbox.cpp +++ b/desktop_version/src/Textbox.cpp @@ -20,7 +20,6 @@ textboxclass::textboxclass(void) tr = 0; tg = 0; tb = 0; - max = 0; flipme = false; @@ -111,7 +110,7 @@ void textboxclass::removefast(void) void textboxclass::resize(void) { //Set the width and height to the correct sizes - max = 0; + int max = 0; for (size_t iter = 0; iter < line.size(); iter++) { unsigned int len = utf8::unchecked::distance(line[iter].begin(), line[iter].end()); diff --git a/desktop_version/src/Textbox.h b/desktop_version/src/Textbox.h index 870d6acf..641b7f8b 100644 --- a/desktop_version/src/Textbox.h +++ b/desktop_version/src/Textbox.h @@ -41,8 +41,6 @@ public: float prev_tl; int tm; - int max; - /* Whether to flip text box y-position in Flip Mode. */ bool flipme;