aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEval.cpp
diff options
context:
space:
mode:
authorVicent Marti2008-08-14 18:43:27 +0000
committerVicent Marti2008-08-14 18:43:27 +0000
commit8eaa982c41a083337aa512f1d303b178d25f6a2a (patch)
treef71ae86498ec1a9b6e71144141443b957a848af0 /gui/ThemeEval.cpp
parent4368e8132f2caefe886bce595731c67ea16855ad (diff)
downloadscummvm-rg350-8eaa982c41a083337aa512f1d303b178d25f6a2a.tar.gz
scummvm-rg350-8eaa982c41a083337aa512f1d303b178d25f6a2a.tar.bz2
scummvm-rg350-8eaa982c41a083337aa512f1d303b178d25f6a2a.zip
Added Classic Theme - WIP (yes, it's working).
Added Builtin theme back. Added Python script to automatically build themes. svn-id: r33868
Diffstat (limited to 'gui/ThemeEval.cpp')
-rw-r--r--gui/ThemeEval.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/ThemeEval.cpp b/gui/ThemeEval.cpp
index f93706cb47..2d8290ffa8 100644
--- a/gui/ThemeEval.cpp
+++ b/gui/ThemeEval.cpp
@@ -139,6 +139,8 @@ void ThemeLayoutVertical::reflowLayout() {
_h += _children[i]->getHeight() + _spacing;
}
}
+
+ _h -= _spacing;
}
void ThemeLayoutHorizontal::reflowLayout() {
@@ -198,6 +200,8 @@ void ThemeLayoutHorizontal::reflowLayout() {
_h = MAX(_h, (int16)(_children[i]->getHeight() + _paddingTop + _paddingBottom));
}
+
+ _w -= _spacing;
}
ThemeEval::~ThemeEval() {