summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-12-21 16:16:40 +0000
committeralberth <alberth@openttd.org>2009-12-21 16:16:40 +0000
commitf55c3312b3a343362548234a7bcf712ec7f15285 (patch)
tree26e349e112d9d77e79b7e7a27b4ceafe60c5c794 /src/window.cpp
parentcc40883ad8dbaf03b68cb332ff1b50a6732939fe (diff)
downloadopenttd-f55c3312b3a343362548234a7bcf712ec7f15285.tar.xz
(svn r18587) -Codechange: Insert a shade selection widget in the widget tree when the window starts with a title bar with a shade box.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 1b3028526..f0d3ce931 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1206,8 +1206,7 @@ static Point LocalGetWindowPlacement(const WindowDesc *desc, int16 sm_width, int
void Window::CreateNestedTree(const WindowDesc *desc, bool fill_nested)
{
int biggest_index = -1;
- NWidgetBase *nested_root = MakeNWidgets(desc->nwid_parts, desc->nwid_length, &biggest_index);
- this->nested_root = nested_root;
+ this->nested_root = MakeWindowNWidgetTree(desc->nwid_parts, desc->nwid_length, &biggest_index, &this->shade_select);
this->nested_array_size = (uint)(biggest_index + 1);
if (fill_nested) {