summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-02-23 09:30:51 +0300
committerAndrei Karas <akaras@inbox.ru>2020-02-23 09:30:51 +0300
commit1e2a88e975019929c4c7e3154537865cc09550a6 (patch)
treeae8bc68ad3a3f6b61a5e2d511d7fc17daa22bd0e /src/input
parent6941fd4eeb1dce20aba8c42fd030c2690c37b731 (diff)
downloadplus-1e2a88e975019929c4c7e3154537865cc09550a6.tar.gz
plus-1e2a88e975019929c4c7e3154537865cc09550a6.tar.bz2
plus-1e2a88e975019929c4c7e3154537865cc09550a6.tar.xz
plus-1e2a88e975019929c4c7e3154537865cc09550a6.zip
Fix some code style issues
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();