From 04f4d8237b879e3bb7c61a84cfbb5146cd408111 Mon Sep 17 00:00:00 2001 From: celestar Date: Thu, 28 Jul 2005 09:17:32 +0000 Subject: (svn r2736) -Codechange: De-mystified GfxDrawFillRect a bit, and used enums from table/sprites.h. You can now change the number of bits used for sprites and switches in the SpriteSetup enum and the rest should work automagically. Can be used to increase the number of active sprites to 2^19 in case there are no colortables (recolor sprites) in any newgrf. We should possibly move the the colortables to an own list, but how to detect them in a newgrf. --- economy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'economy.c') diff --git a/economy.c b/economy.c index c71e3143a..396b9a8a6 100644 --- a/economy.c +++ b/economy.c @@ -5,6 +5,7 @@ #include "functions.h" #include "strings.h" // XXX InjectDParam() #include "table/strings.h" +#include "table/sprites.h" #include "map.h" #include "news.h" #include "player.h" @@ -491,7 +492,7 @@ void DrawNewsBankrupcy(Window *w) p = GetPlayer(WP(w,news_d).ni->string_id & 15); DrawPlayerFace(p->face, p->player_color, 2, 23); - GfxFillRect(3, 23, 3+91, 23+118, 0x4323); + GfxFillRect(3, 23, 3+91, 23+118, 0x323 | USE_COLORTABLE); SetDParam(0, p->president_name_1); SetDParam(1, p->president_name_2); -- cgit v1.2.3-54-g00ecf