1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Fix bug with transparency

This commit is contained in:
ZedThree
2014-05-15 22:13:27 +02:00
parent 088ac32da3
commit 67980e2f5f

View File

@@ -451,17 +451,16 @@ void gfx_fill_rect_inset(rct_drawpixelinfo* dpi, short left, short top, short ri
if ((colour & 0x180)) {
// jnz loc_6E719A
if (!(colour & 0x100)) {
if (colour & 0x100) {
colour = colour & 0x7F;
} else {
colour = RCT2_ADDRESS(0x009DEDF4,uint8)[colour];
}
colour = colour & 0x2000000;
colour = colour | 0x2000000;
if (_si, 8) {
if (_si & 8) {
gfx_fill_rect(dpi, left, top, bottom, right, colour);
return;
} else if (_si & 0x20) {
gfx_fill_rect(dpi, left, top, left, bottom, colour + 1);
gfx_fill_rect(dpi, left, top, right, top, colour + 1);