diff options
author | alberth <alberth@openttd.org> | 2009-09-02 20:25:56 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-09-02 20:25:56 +0000 |
commit | 4bbb0234639e889e1ba77294f1c538f849a50151 (patch) | |
tree | da9d1c23c2210526149dc74386ed7bc2c95ece39 | |
parent | 417ad163c0e8be9b013b2cfa3a5ad1077af1c67d (diff) | |
download | openttd-4bbb0234639e889e1ba77294f1c538f849a50151.tar.xz |
(svn r17388) -Codechange: Paint the background of background widgets before painting its children.
-rw-r--r-- | src/widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index cd3444468..19509e040 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1809,8 +1809,8 @@ void NWidgetBackground::Draw(const Window *w) NOT_REACHED(); } - if (this->child != NULL) this->child->Draw(w); if (this->index >= 0) w->DrawWidget(r, this->index); + if (this->child != NULL) this->child->Draw(w); if (this->IsDisabled()) { GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, _colour_gradient[this->colour & 0xF][2], FILLRECT_CHECKER); |