summaryrefslogtreecommitdiffstats
path: root/gui/objects.hpp
diff options
context:
space:
mode:
authorSultan Qasim Khan <sultanqasim@gmail.com>2016-04-04 10:11:25 +0200
committerEthan Yonker <dees_troy@teamw.in>2016-04-04 15:26:33 +0200
commit14138d9f74c7b56e600166a993ea62818fa0f840 (patch)
tree898c0809eca9ff74e9fc23f88365db12163c91dc /gui/objects.hpp
parentlanguage: add 2 new strings in it.xml (diff)
downloadandroid_bootable_recovery-14138d9f74c7b56e600166a993ea62818fa0f840.tar
android_bootable_recovery-14138d9f74c7b56e600166a993ea62818fa0f840.tar.gz
android_bootable_recovery-14138d9f74c7b56e600166a993ea62818fa0f840.tar.bz2
android_bootable_recovery-14138d9f74c7b56e600166a993ea62818fa0f840.tar.lz
android_bootable_recovery-14138d9f74c7b56e600166a993ea62818fa0f840.tar.xz
android_bootable_recovery-14138d9f74c7b56e600166a993ea62818fa0f840.tar.zst
android_bootable_recovery-14138d9f74c7b56e600166a993ea62818fa0f840.zip
Diffstat (limited to 'gui/objects.hpp')
-rw-r--r--gui/objects.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gui/objects.hpp b/gui/objects.hpp
index 7913b36cb..84a9e5ecf 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -1000,7 +1000,7 @@ protected:
// Handles displaying the text properly when chars are added, deleted, or for scrolling
void HandleTextLocation(int x);
- void UpdateTextWidth();
+ void UpdateDisplayText();
void HandleCursorByTouch(int x);
void HandleCursorByText();
@@ -1010,15 +1010,14 @@ protected:
ImageResource* mBackground;
ImageResource* mCursor;
FontResource* mFont;
- std::string mText;
- std::string mLastValue;
std::string mVariable;
std::string mMask;
+ std::string mValue;
std::string displayValue;
COLOR mBackgroundColor;
COLOR mCursorColor;
int scrollingX;
- int cursorX;
+ int cursorX; // actual x axis location of the cursor
int lastX;
int mCursorLocation;
int mBackgroundX, mBackgroundY, mBackgroundW, mBackgroundH;