equal
deleted
inserted
replaced
49 |
49 |
50 static void DrawNewsBankrupcy(Window *w, const NewsItem *ni) |
50 static void DrawNewsBankrupcy(Window *w, const NewsItem *ni) |
51 { |
51 { |
52 Player *p = GetPlayer((PlayerID)(ni->data_b)); |
52 Player *p = GetPlayer((PlayerID)(ni->data_b)); |
53 DrawPlayerFace(p->face, p->player_color, 2, 23); |
53 DrawPlayerFace(p->face, p->player_color, 2, 23); |
54 GfxFillRect(3, 23, 3 + 91, 23 + 118, PALETTE_TO_STRUCT_GREY | (1 << USE_COLORTABLE)); |
54 GfxFillRect(3, 23, 3 + 91, 23 + 118, PALETTE_TO_STRUCT_GREY, FILLRECT_RECOLOR); |
55 |
55 |
56 SetDParam(0, p->index); |
56 SetDParam(0, p->index); |
57 |
57 |
58 DrawStringMultiCenter(49, 148, STR_7058_PRESIDENT, 94); |
58 DrawStringMultiCenter(49, 148, STR_7058_PRESIDENT, 94); |
59 |
59 |
231 |
231 |
232 /* Shade the viewport into gray, or color*/ |
232 /* Shade the viewport into gray, or color*/ |
233 ViewPort *vp = this->viewport; |
233 ViewPort *vp = this->viewport; |
234 GfxFillRect(vp->left - this->left, vp->top - this->top, |
234 GfxFillRect(vp->left - this->left, vp->top - this->top, |
235 vp->left - this->left + vp->width - 1, vp->top - this->top + vp->height - 1, |
235 vp->left - this->left + vp->width - 1, vp->top - this->top + vp->height - 1, |
236 (this->ni->flags & NF_INCOLOR ? PALETTE_TO_TRANSPARENT : PALETTE_TO_STRUCT_GREY) | (1 << USE_COLORTABLE) |
236 (this->ni->flags & NF_INCOLOR ? PALETTE_TO_TRANSPARENT : PALETTE_TO_STRUCT_GREY), FILLRECT_RECOLOR |
237 ); |
237 ); |
238 |
238 |
239 CopyInDParam(0, this->ni->params, lengthof(this->ni->params)); |
239 CopyInDParam(0, this->ni->params, lengthof(this->ni->params)); |
240 DrawStringMultiCenter(this->width / 2, 20, this->ni->string_id, this->width - 4); |
240 DrawStringMultiCenter(this->width / 2, 20, this->ni->string_id, this->width - 4); |
241 } |
241 } |