Fixed textbox carot color

This commit is contained in:
Robert Jordan 2015-05-12 17:06:26 -04:00
parent e673a8ab80
commit 6e57291e2d
1 changed files with 5 additions and 1 deletions

View File

@ -249,7 +249,11 @@ static void window_text_input_paint(){
}
if (w->frame_no > 15){
gfx_fill_rect(dpi, cur_x, y + 9, cur_x + width, y + 9, w->colours[1]);
uint8 eax;
eax = RCT2_ADDRESS(0x0141FC4A, uint8)[w->colours[1] * 8];
eax = eax << 16;
eax = eax | RCT2_ADDRESS(0x0141FC48, uint8)[w->colours[1] * 8];
gfx_fill_rect(dpi, cur_x, y + 9, cur_x + width, y + 9, (eax & 0xFF) + 5);
}
cur_drawn++;