diff --git a/src/windows/text_input.c b/src/windows/text_input.c index 7252b6430d..77866cd063 100644 --- a/src/windows/text_input.c +++ b/src/windows/text_input.c @@ -249,11 +249,8 @@ static void window_text_input_paint(){ } if (w->frame_no > 15){ - 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); + uint8 colour = RCT2_ADDRESS(0x0141FC4A, uint8)[w->colours[1] * 8]; + gfx_fill_rect(dpi, cur_x, y + 9, cur_x + width, y + 9, colour + 5); } cur_drawn++;