summaryrefslogtreecommitdiff
path: root/src/input/touch/touchmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 03:30:58 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 03:30:58 +0300
commit003043714367009efaf07015cc63a901ae2ee47c (patch)
treef441091a46ac07419977a0dba4cfd6b5ceab667b /src/input/touch/touchmanager.cpp
parent916a3d76da98d078a807044c43d1a70bc146ba70 (diff)
downloadplus-003043714367009efaf07015cc63a901ae2ee47c.tar.gz
plus-003043714367009efaf07015cc63a901ae2ee47c.tar.bz2
plus-003043714367009efaf07015cc63a901ae2ee47c.tar.xz
plus-003043714367009efaf07015cc63a901ae2ee47c.zip
Remove default parameters from theme.
Diffstat (limited to 'src/input/touch/touchmanager.cpp')
-rw-r--r--src/input/touch/touchmanager.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/input/touch/touchmanager.cpp b/src/input/touch/touchmanager.cpp
index df98e667f..ec2d71760 100644
--- a/src/input/touch/touchmanager.cpp
+++ b/src/input/touch/touchmanager.cpp
@@ -143,7 +143,11 @@ void TouchManager::loadTouchItem(TouchItem **restrict item,
else
icon = Theme::getImageFromThemeXml(imageName, "");
- Skin *const skin = theme->loadSkinRect(*images, name, "");
+ Skin *const skin = theme->loadSkinRect(*images,
+ name,
+ "",
+ 0,
+ 8);
if (skin != nullptr)
{
Image *const image = images->grid[0];
@@ -389,7 +393,7 @@ void TouchManager::unload(TouchItem *restrict const item)
{
if (item->images != nullptr)
{
- Theme::unloadRect(*item->images);
+ Theme::unloadRect(*item->images, 0, 8);
delete2(item->images);
if (item->icon != nullptr)
{
@@ -427,7 +431,10 @@ void TouchManager::loadButtons() restrict2
const int sz = (mButtonsSize + 1) * 50;
if (theme == nullptr)
return;
- Skin *const skin = theme->load("dbutton.xml", "");
+ Skin *const skin = theme->load("dbutton.xml",
+ "",
+ true,
+ theme->getThemePath());
if (skin != nullptr)
{