mirror of https://github.com/OpenRCT2/OpenRCT2.git
Bug fix: pressed buttons not the right colour
This commit is contained in:
parent
67980e2f5f
commit
4fae966855
|
@ -533,15 +533,14 @@ void gfx_fill_rect_inset(rct_drawpixelinfo* dpi, short left, short top, short ri
|
|||
if (_si & 0x04) {
|
||||
colour3 = RCT2_ADDRESS(0x0141FC49, uint8)[0];
|
||||
} else {
|
||||
colour3 = colour_ & 0xFF;
|
||||
colour3 = RCT2_ADDRESS(0x0141FC4A, uint8)[colour * 8];
|
||||
}
|
||||
colour3 = colour_ & 0xFF00;
|
||||
}
|
||||
gfx_fill_rect(dpi, left+1, top+1, right-1, bottom-1, colour3);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
gfx_fill_rect(dpi, left, top, right, bottom, colour);
|
||||
gfx_fill_rect(dpi, left, top, right, bottom, colour_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue