mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #1248 from trigger-death/text-box-widget
Fixed #1247 font issues.
This commit is contained in:
commit
5fb44a443e
|
@ -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) {
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue