summaryrefslogtreecommitdiffstats
path: root/gui/keyboard.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-10-15 21:56:10 +0200
committerDees_Troy <dees_troy@teamw.in>2012-10-15 21:58:14 +0200
commit0cb64e5b2388059330ff0e4d5088e5b2cfc9d607 (patch)
tree574ce5f62fa9aeb6f4e4f5f5a02eec33a5447205 /gui/keyboard.cpp
parentBump version to 2.3.1.0 (diff)
downloadandroid_bootable_recovery-0cb64e5b2388059330ff0e4d5088e5b2cfc9d607.tar
android_bootable_recovery-0cb64e5b2388059330ff0e4d5088e5b2cfc9d607.tar.gz
android_bootable_recovery-0cb64e5b2388059330ff0e4d5088e5b2cfc9d607.tar.bz2
android_bootable_recovery-0cb64e5b2388059330ff0e4d5088e5b2cfc9d607.tar.lz
android_bootable_recovery-0cb64e5b2388059330ff0e4d5088e5b2cfc9d607.tar.xz
android_bootable_recovery-0cb64e5b2388059330ff0e4d5088e5b2cfc9d607.tar.zst
android_bootable_recovery-0cb64e5b2388059330ff0e4d5088e5b2cfc9d607.zip
Diffstat (limited to '')
-rw-r--r--gui/keyboard.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/keyboard.cpp b/gui/keyboard.cpp
index a41cba21d..6595d8da2 100644
--- a/gui/keyboard.cpp
+++ b/gui/keyboard.cpp
@@ -323,7 +323,7 @@ int GUIKeyboard::SetRenderPos(int x, int y, int w, int h)
int GUIKeyboard::GetSelection(int x, int y)
{
- if (x < mRenderX || x - mRenderX > mRenderW || y < mRenderY || y - mRenderY > mRenderH) return -1;
+ if (x < mRenderX || x - mRenderX > KeyboardWidth || y < mRenderY || y - mRenderY > KeyboardHeight) return -1;
return 0;
}
@@ -368,10 +368,10 @@ int GUIKeyboard::NotifyTouch(TOUCH_STATE state, int x, int y)
case TOUCH_DRAG:
break;
case TOUCH_RELEASE:
- if (x < startX - (mRenderW * 0.5)) {
+ if (x < startX - (KeyboardWidth * 0.5)) {
PageManager::NotifyKeyboard(KEYBOARD_SWIPE_LEFT);
return 0;
- } else if (x > startX + (mRenderW * 0.5)) {
+ } else if (x > startX + (KeyboardWidth * 0.5)) {
PageManager::NotifyKeyboard(KEYBOARD_SWIPE_RIGHT);
return 0;
}