Restore sanity

This commit is contained in:
iq_132 2018-04-13 03:16:40 +00:00
parent 103c68d9ac
commit 17e821b135
1 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ void k007121_draw(INT32 chip, UINT16 *dest, UINT8 *gfx, UINT8 *ctable, UINT8 *so
INT32 attr = source[offs[4]]; INT32 attr = source[offs[4]];
INT32 xflip = source[offs[4]] & 0x10; INT32 xflip = source[offs[4]] & 0x10;
INT32 yflip = source[offs[4]] & 0x20; INT32 yflip = source[offs[4]] & 0x20;
INT32 color = base_color + ((source[offs[1]] & 0xf0) >> 4); INT32 color = ((source[offs[1]] & 0xf0) >> 4);
INT32 width, height; INT32 width, height;
static const INT32 x_offset[4] = {0x0,0x1,0x4,0x5}; static const INT32 x_offset[4] = {0x0,0x1,0x4,0x5};
static const INT32 y_offset[4] = {0x0,0x2,0x8,0xa}; static const INT32 y_offset[4] = {0x0,0x2,0x8,0xa};
@ -169,7 +169,7 @@ void k007121_draw(INT32 chip, UINT16 *dest, UINT8 *gfx, UINT8 *ctable, UINT8 *so
if (pri_mask != -1) if (pri_mask != -1)
{ {
if (ctable != NULL) { if (ctable != NULL) {
RenderTilePrioTranstab(dest, gfx, code, (color * 16) + base_color, 0, destx, desty, flipx, flipy, 8, 8, ctable - base_color, pri_mask); RenderTilePrioTranstab(dest, gfx, code, (color * 16) + base_color, 0, destx, desty, flipx, flipy, 8, 8, ctable, pri_mask);
} else { } else {
if (flipy) { if (flipy) {
if (flipx) { if (flipx) {
@ -189,7 +189,7 @@ void k007121_draw(INT32 chip, UINT16 *dest, UINT8 *gfx, UINT8 *ctable, UINT8 *so
else else
{ {
if (ctable != NULL) { if (ctable != NULL) {
RenderTileTranstab(dest, gfx, code, (color * 16) + base_color, 0, destx, desty, flipx, flipy, 8, 8, ctable - base_color); RenderTileTranstab(dest, gfx, code, (color * 16) + base_color, 0, destx, desty, flipx, flipy, 8, 8, ctable);
} else { } else {
if (is_flakatck) { if (is_flakatck) {
draw_prisprite_flakatck(dest, gfx, code, color << 4, destx, desty, flipx, flipy, 8, 8, flakatck_prio); draw_prisprite_flakatck(dest, gfx, code, color << 4, destx, desty, flipx, flipy, 8, 8, flakatck_prio);