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. --- texteff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'texteff.c') diff --git a/texteff.c b/texteff.c index 5e5e7c41e..9121b29a2 100644 --- a/texteff.c +++ b/texteff.c @@ -11,6 +11,7 @@ #include "console.h" #include "string.h" #include "variables.h" +#include "table/sprites.h" #include /* va_list */ typedef struct TextEffect { @@ -207,7 +208,7 @@ void DrawTextMessage(void) continue; j++; - GfxFillRect(_textmessage_box_left, _screen.height-_textmessage_box_bottom-j*13-2, _textmessage_box_left+_textmessage_width - 1, _screen.height-_textmessage_box_bottom-j*13+10, /* black, but with some alpha */ 0x4322); + GfxFillRect(_textmessage_box_left, _screen.height-_textmessage_box_bottom-j*13-2, _textmessage_box_left+_textmessage_width - 1, _screen.height-_textmessage_box_bottom-j*13+10, /* black, but with some alpha */ 0x322 | USE_COLORTABLE); DoDrawString(_text_message_list[i].message, _textmessage_box_left + 2, _screen.height - _textmessage_box_bottom - j * 13 - 1, 0x10); DoDrawString(_text_message_list[i].message, _textmessage_box_left + 3, _screen.height - _textmessage_box_bottom - j * 13, _text_message_list[i].color); -- cgit v1.2.3-54-g00ecf