changeset 12896:04374f6dcdc8 draft

(svn r17388) -Codechange: Paint the background of background widgets before painting its children.
author alberth <alberth@openttd.org>
date Wed, 02 Sep 2009 20:25:56 +0000
parents baee5fd5f899
children 323d905aa7b9
files src/widget.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1809,8 +1809,8 @@
 			NOT_REACHED();
 	}
 
+	if (this->index >= 0) w->DrawWidget(r, this->index);
 	if (this->child != NULL) this->child->Draw(w);
-	if (this->index >= 0) w->DrawWidget(r, this->index);
 
 	if (this->IsDisabled()) {
 		GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, _colour_gradient[this->colour & 0xF][2], FILLRECT_CHECKER);