summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-02 11:31:11 +0000
committerrubidium <rubidium@openttd.org>2009-09-02 11:31:11 +0000
commit9ceee424304dafe0cb0089347ac19b57c93e111f (patch)
tree3732f2e0bc3e93d4c5b831f3d48a119c1fa32eba /src
parent5cb22df0f56420759e727b9e9fd16e379a358fb2 (diff)
downloadopenttd-9ceee424304dafe0cb0089347ac19b57c93e111f.tar.xz
(svn r17376) -Fix: also draw the white "I've just opened" line for nested windows
Diffstat (limited to 'src')
-rw-r--r--src/widget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index e3307bd69..cd3444468 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -582,6 +582,11 @@ void Window::DrawWidgets() const
{
if (this->nested_root != NULL) {
this->nested_root->Draw(this);
+
+ if (this->flags4 & WF_WHITE_BORDER_MASK) {
+ DrawFrameRect(0, 0, this->width - 1, this->height - 1, COLOUR_WHITE, FR_BORDERONLY);
+ }
+
return;
}
@@ -695,7 +700,6 @@ void Window::DrawWidgets() const
if (this->flags4 & WF_WHITE_BORDER_MASK) {
DrawFrameRect(0, 0, this->width - 1, this->height - 1, COLOUR_WHITE, FR_BORDERONLY);
}
-
}
/**