summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-11-06 22:24:26 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-11-06 22:24:35 +0100
commitfd52b987e5c8e6a66aefb04fd56081277e225b18 (patch)
tree8477f9539d2271241cd326866ee85e6fbe9c980e /gui
parentMinor update to decrypt device routine for Nexus 6P decrypt (diff)
downloadandroid_bootable_recovery-fd52b987e5c8e6a66aefb04fd56081277e225b18.tar
android_bootable_recovery-fd52b987e5c8e6a66aefb04fd56081277e225b18.tar.gz
android_bootable_recovery-fd52b987e5c8e6a66aefb04fd56081277e225b18.tar.bz2
android_bootable_recovery-fd52b987e5c8e6a66aefb04fd56081277e225b18.tar.lz
android_bootable_recovery-fd52b987e5c8e6a66aefb04fd56081277e225b18.tar.xz
android_bootable_recovery-fd52b987e5c8e6a66aefb04fd56081277e225b18.tar.zst
android_bootable_recovery-fd52b987e5c8e6a66aefb04fd56081277e225b18.zip
Diffstat (limited to '')
-rw-r--r--gui/button.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/button.cpp b/gui/button.cpp
index 601a51667..a4c1b52bd 100644
--- a/gui/button.cpp
+++ b/gui/button.cpp
@@ -104,10 +104,13 @@ GUIButton::GUIButton(xml_node<>* node)
mButtonLabel->SetRenderPos(mTextX, mTextY);
} else {
mTextX = mRenderW + mRenderX + 5;
- mRenderW += mTextW + 5;
mButtonLabel->GetCurrentBounds(mTextW, mTextH);
+ mRenderW += mTextW + 5;
mTextY = mRenderY + (mRenderH / 2) - (mTextH / 2);
mButtonLabel->SetRenderPos(mTextX, mTextY);
+ if (mAction)
+ mAction->SetActionPos(mRenderX, mRenderY, mRenderW, mRenderH);
+ SetActionPos(mRenderX, mRenderY, mRenderW, mRenderH);
}
}
}