summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-06-28 15:44:24 +0000
committerfrosch <frosch@openttd.org>2008-06-28 15:44:24 +0000
commitecc5d648dfefd7949b7508c724790dd452814fb2 (patch)
tree8d015d80fd5b0b32f5e85a7550aaf55daca5dd38 /src/news_gui.cpp
parent06049563da44c1487c329f85cba77e0cf4194b7e (diff)
downloadopenttd-ecc5d648dfefd7949b7508c724790dd452814fb2.tar.xz
(svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index d35eeced2..68caa9fae 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -51,7 +51,7 @@ static void DrawNewsBankrupcy(Window *w, const NewsItem *ni)
{
Player *p = GetPlayer((PlayerID)(ni->data_b));
DrawPlayerFace(p->face, p->player_color, 2, 23);
- GfxFillRect(3, 23, 3 + 91, 23 + 118, PALETTE_TO_STRUCT_GREY | (1 << USE_COLORTABLE));
+ GfxFillRect(3, 23, 3 + 91, 23 + 118, PALETTE_TO_STRUCT_GREY, FILLRECT_RECOLOR);
SetDParam(0, p->index);
@@ -233,7 +233,7 @@ struct NewsWindow : Window {
ViewPort *vp = this->viewport;
GfxFillRect(vp->left - this->left, vp->top - this->top,
vp->left - this->left + vp->width - 1, vp->top - this->top + vp->height - 1,
- (this->ni->flags & NF_INCOLOR ? PALETTE_TO_TRANSPARENT : PALETTE_TO_STRUCT_GREY) | (1 << USE_COLORTABLE)
+ (this->ni->flags & NF_INCOLOR ? PALETTE_TO_TRANSPARENT : PALETTE_TO_STRUCT_GREY), FILLRECT_RECOLOR
);
CopyInDParam(0, this->ni->params, lengthof(this->ni->params));