summaryrefslogtreecommitdiffstats
path: root/gui/keyboard.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-01-06 21:30:33 +0100
committerDees Troy <dees_troy@teamw.in>2017-01-18 17:50:05 +0100
commit23d8aaef2964659bd5495638d5b85f00ef3f9620 (patch)
treeaab3c7f695b11213a4e7f6838d2829f2c20c5252 /gui/keyboard.cpp
parentVery minor code cleanup (diff)
downloadandroid_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.gz
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.bz2
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.lz
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.xz
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.tar.zst
android_bootable_recovery-23d8aaef2964659bd5495638d5b85f00ef3f9620.zip
Diffstat (limited to 'gui/keyboard.cpp')
-rw-r--r--gui/keyboard.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/gui/keyboard.cpp b/gui/keyboard.cpp
index 4a78ad798..849cf19d8 100644
--- a/gui/keyboard.cpp
+++ b/gui/keyboard.cpp
@@ -346,7 +346,6 @@ void GUIKeyboard::DrawKey(Key& key, int keyX, int keyY, int keyW, int keyH)
void* fontResource = mLongpressFont->GetResource();
gr_color(mLongpressFontColor.red, mLongpressFontColor.green, mLongpressFontColor.blue, mLongpressFontColor.alpha);
string text(1, keychar);
- int textH = mLongpressFont->GetHeight();
int textW = gr_ttf_measureEx(text.c_str(), fontResource);
int textX = keyX + keyW - longpressOffsetX - textW;
int textY = keyY + longpressOffsetY;