mirror of
https://github.com/holub/mame
synced 2025-05-25 23:35:26 +03:00
Fixed a palette bug with Konami GX Type 4 games [David Haywood]
This commit is contained in:
parent
9ed78d5d0b
commit
f311570712
@ -605,14 +605,12 @@ WRITE32_HANDLER( konamigx_palette2_w )
|
|||||||
|
|
||||||
COMBINE_DATA(&gx_subpaletteram32[offset]);
|
COMBINE_DATA(&gx_subpaletteram32[offset]);
|
||||||
|
|
||||||
|
r = (gx_subpaletteram32[offset] >>16) & 0xff;
|
||||||
|
g = (gx_subpaletteram32[offset] >> 8) & 0xff;
|
||||||
|
b = (gx_subpaletteram32[offset] >> 0) & 0xff;
|
||||||
|
|
||||||
offset += (0x8000/4);
|
offset += (0x8000/4);
|
||||||
|
|
||||||
COMBINE_DATA(&paletteram32[offset]);
|
|
||||||
|
|
||||||
r = (paletteram32[offset] >>16) & 0xff;
|
|
||||||
g = (paletteram32[offset] >> 8) & 0xff;
|
|
||||||
b = (paletteram32[offset] >> 0) & 0xff;
|
|
||||||
|
|
||||||
palette_set_color(space->machine,offset,MAKE_RGB(r,g,b));
|
palette_set_color(space->machine,offset,MAKE_RGB(r,g,b));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user