mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 04:29:09 +00:00
(svn r17388) -Codechange: Paint the background of background widgets before painting its children.
This commit is contained in:
@@ -1809,8 +1809,8 @@ void NWidgetBackground::Draw(const Window *w)
|
|||||||
NOT_REACHED();
|
NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->child != NULL) this->child->Draw(w);
|
|
||||||
if (this->index >= 0) w->DrawWidget(r, this->index);
|
if (this->index >= 0) w->DrawWidget(r, this->index);
|
||||||
|
if (this->child != NULL) this->child->Draw(w);
|
||||||
|
|
||||||
if (this->IsDisabled()) {
|
if (this->IsDisabled()) {
|
||||||
GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, _colour_gradient[this->colour & 0xF][2], FILLRECT_CHECKER);
|
GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, _colour_gradient[this->colour & 0xF][2], FILLRECT_CHECKER);
|
||||||
|
Reference in New Issue
Block a user