Previous 15994 Revisions Next

r15533 Wednesday 4th July, 2012 at 19:37:31 UTC by Wilbert Pol
scv.c: Fixed a small issue with drawing 2-color sprites.
[src/mess/drivers]scv.c

src/mess/drivers/scv.c
r15532r15533
706706               static const UINT8 spr_2col_lut0[16] = { 0, 15, 12, 13, 10, 11,  8, 9, 6, 7,  4,  5, 2, 3,  1,  1 };
707707               static const UINT8 spr_2col_lut1[16] = { 0,  1,  8, 11,  2,  3, 10, 9, 4, 5, 12, 13, 6, 7, 14, 15 };
708708
709               draw_sprite( state, bitmap, spr_x, spr_y, tile_idx + 8 * x_32 + y_32, ( i & 0x40 ) ? spr_2col_lut1[col] : spr_2col_lut0[col], left, right, top, bottom, clip );
709               draw_sprite( state, bitmap, spr_x, spr_y, tile_idx ^ ( 8 * x_32 + y_32 ), ( i & 0x40 ) ? spr_2col_lut1[col] : spr_2col_lut0[col], left, right, top, bottom, clip );
710710            }
711711         }
712712         else

Previous 15994 Revisions Next


© 1998-2018 The MESS Team