mirror of https://github.com/OpenRCT2/OpenRCT2.git
Simplified getting color
This commit is contained in:
parent
6e57291e2d
commit
fdd8461af4
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue