Simplified getting color

This commit is contained in:
Robert Jordan 2015-05-13 10:29:50 -04:00
parent 6e57291e2d
commit fdd8461af4
1 changed files with 2 additions and 5 deletions

View File

@ -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++;