Previous 15994 Revisions Next

r6949 Wednesday 6th January, 2010 at 03:43:52 UTC by Barry Rodewald
[FMTOWNS] Fixed 16bpp sprite transparency.
[src/mess/video]fmtowns.c

src/mess/video/fmtowns.c
r6948r6949
725725         voffset += (towns_crtc_reg[24] * 4) * ypos;  // scanline size in bytes * y pos
726726         voffset += (xpos & 0x1ff) * 2;
727727         voffset &= 0x7ffff;
728         if(xpos <= rect->max_x && ypos <= rect->max_y)
728         if(xpos <= rect->max_x && ypos <= rect->max_y && col < 0x8000)
729729         {
730730            towns_gfxvram[voffset+1] = (col & 0xff00) >> 8;
731731            towns_gfxvram[voffset] = col & 0x00ff;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team