Changeset - r12886:370cbdc17ed5
[Not reviewed]
master
0 1 0
alberth - 15 years ago 2009-09-02 20:25:56
alberth@openttd.org
(svn r17388) -Codechange: Paint the background of background widgets before painting its children.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/widget.cpp
Show inline comments
 
@@ -1806,14 +1806,14 @@ void NWidgetBackground::Draw(const Windo
 
			break;
 

	
 
		default:
 
			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);
 
	}
 
}
 

	
0 comments (0 inline, 0 general)