diff options
| author | Max Horn | 2008-12-26 01:08:49 +0000 | 
|---|---|---|
| committer | Max Horn | 2008-12-26 01:08:49 +0000 | 
| commit | 131cb5a05ac14f1608030437aed72883f4ddd0d3 (patch) | |
| tree | a600ee3f9fa8899705339119cf1e4b7eb018608a /gui/ThemeEval.cpp | |
| parent | c59f5919a23419203f5a7e73bb8bb658ac50b14d (diff) | |
| download | scummvm-rg350-131cb5a05ac14f1608030437aed72883f4ddd0d3.tar.gz scummvm-rg350-131cb5a05ac14f1608030437aed72883f4ddd0d3.tar.bz2 scummvm-rg350-131cb5a05ac14f1608030437aed72883f4ddd0d3.zip | |
Merged ThemeLayoutHorizontal and ThemeLayoutVertical into a new class ThemeLayoutStacked (suggestions for a better name are welcome); stored padding data in a Common::Rect
svn-id: r35548
Diffstat (limited to 'gui/ThemeEval.cpp')
| -rw-r--r-- | gui/ThemeEval.cpp | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/gui/ThemeEval.cpp b/gui/ThemeEval.cpp index 5d841c6ad7..6a0056c63b 100644 --- a/gui/ThemeEval.cpp +++ b/gui/ThemeEval.cpp @@ -127,10 +127,7 @@ void ThemeEval::addLayout(ThemeLayout::LayoutType type, int spacing, bool center  	if (spacing == -1)  		spacing = getVar("Globals.Layout.Spacing", 4); -	if (type == ThemeLayout::kLayoutVertical) -		layout = new ThemeLayoutVertical(_curLayout.top(), spacing, center); -	else if (type == ThemeLayout::kLayoutHorizontal) -		layout = new ThemeLayoutHorizontal(_curLayout.top(), spacing, center); +	layout = new ThemeLayoutStacked(_curLayout.top(), type, spacing, center);  	assert(layout); | 
