From 4bbb0234639e889e1ba77294f1c538f849a50151 Mon Sep 17 00:00:00 2001 From: alberth Date: Wed, 2 Sep 2009 20:25:56 +0000 Subject: (svn r17388) -Codechange: Paint the background of background widgets before painting its children. --- src/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2