From 003043714367009efaf07015cc63a901ae2ee47c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Dec 2017 03:30:58 +0300 Subject: Remove default parameters from theme. --- src/input/touch/touchmanager.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/input') 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) { -- cgit v1.2.3-70-g09d2