Previous 15994 Revisions Next

r6724 Wednesday 23rd December, 2009 at 06:54:32 UTC by Barry Rodewald
[FMTOWNS] Fixed some sprite transparency issues.
[src/mess/video]fmtowns.c

src/mess/video/fmtowns.c
r6723r6724
634634         voffset += (xpos & 0x1ff) * 2;
635635         voffset &= 0x3ffff;
636636         voffset += (towns_sprite_reg[6] & 0x10) ? 0x60000 : 0x40000;
637         if(xpos <= rect->max_x && ypos <= rect->max_y && col != 0)
637         if(xpos <= rect->max_x && ypos <= rect->max_y && pixel != 0)
638638         {
639639            towns_gfxvram[voffset+1] = (col & 0xff00) >> 8;
640640            towns_gfxvram[voffset] = col & 0x00ff;
r6723r6724
644644         col = towns_sprram[coffset+(pixel*2)] | (towns_sprram[coffset+(pixel*2)+1] << 8);
645645         voffset &= 0x3ffff;
646646         voffset += (towns_sprite_reg[6] & 0x10) ? 0x60000 : 0x40000;
647         if(xpos <= rect->max_x && ypos <= rect->max_y && col != 0)
647         if(xpos <= rect->max_x && ypos <= rect->max_y && pixel != 0)
648648         {
649649            towns_gfxvram[voffset+1] = (col & 0xff00) >> 8;
650650            towns_gfxvram[voffset] = col & 0x00ff;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team