Merge pull request #1248 from trigger-death/text-box-widget

Fixed #1247 font issues.
This commit is contained in:
Ted John 2015-06-07 02:56:00 +01:00
commit 5fb44a443e
2 changed files with 5 additions and 0 deletions

View File

@ -1161,6 +1161,8 @@ static void widget_text_box_draw(rct_drawpixelinfo *dpi, rct_window *w, int widg
//gfx_fill_rect_inset(dpi, l, t, r, b, colour, 0x20 | (!active ? 0x40 : 0x00));
gfx_fill_rect_inset(dpi, l, t, r, b, colour, 0x60);
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_FONT_SPRITE_BASE, uint16) = 224;
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_FONT_FLAGS, uint16) = 0;
if (!active) {

View File

@ -274,6 +274,9 @@ static void window_text_input_paint(){
y += 25;
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_FONT_SPRITE_BASE, uint16) = 224;
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_FONT_FLAGS, uint16) = 0;
char wrapped_string[512];
strcpy(wrapped_string, text_input);