summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/touch/touchmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/touch/touchmanager.cpp b/src/input/touch/touchmanager.cpp
index e4a271797..fe70a0685 100644
--- a/src/input/touch/touchmanager.cpp
+++ b/src/input/touch/touchmanager.cpp
@@ -428,7 +428,6 @@ void TouchManager::loadPad() restrict2
void TouchManager::loadButtons() restrict2
{
- const int sz = (mButtonsSize + 1) * 50;
if (theme == nullptr)
return;
Skin *const skin = theme->load("dbutton.xml",
@@ -438,6 +437,7 @@ void TouchManager::loadButtons() restrict2
if (skin != nullptr)
{
+ const int sz = (mButtonsSize + 1) * 50;
const int x = skin->getOption("x", 10);
const int y = skin->getOption("y", 10);
const int pad = skin->getPadding();