Previous 15994 Revisions Next

r6740 Thursday 24th December, 2009 at 21:50:20 UTC by Barry Rodewald
[FMTOWNS] Fixed flipped sprite alignment.
[src/mess/video]fmtowns.c

src/mess/video/fmtowns.c
r6739r6740
620620 */
621621void render_sprite_4(bitmap_t* bitmap, UINT32 poffset, UINT32 coffset, UINT16 x, UINT16 y, UINT16 xflip, UINT16 yflip, const rectangle* rect)
622622{
623   UINT16 xpos,ypos;
623   INT16 xpos,ypos;
624624   UINT16 col,pixel;
625625   UINT32 voffset;
626626   int xstart,xend,xdir,ystart,yend,ydir;
627627   
628628   if(xflip)
629629   {
630      xstart = x+16;
631      xend = x;
630      xstart = x+14;
631      xend = x-2;
632632      xdir = -2;
633633   }
634634   else
635635   {
636      xstart = x;
637      xend = x+16;
636      xstart = x+2;
637      xend = x+18;
638638      xdir = 2;
639639   }
640640   if(yflip)
641641   {
642      ystart = y+16;
643      yend = y;
642      ystart = y+15;
643      yend = y-1;
644644      ydir = -1;
645645   }
646646   else
r6739r6740
694694
695695void render_sprite_16(bitmap_t* bitmap, UINT32 poffset, UINT16 x, UINT16 y, UINT16 xflip, UINT16 yflip, const rectangle* rect)
696696{
697   UINT16 xpos,ypos;
697   INT16 xpos,ypos;
698698   UINT16 col;
699699   UINT32 voffset;
700700   int xstart,ystart,xend,yend,xdir,ydir;
r6739r6740
707707   }
708708   else
709709   {
710      xstart = x;
711      xend = x+16;
710      xstart = x+1;
711      xend = x+17;
712712      xdir = 1;
713713   }
714714   if(yflip)
715715   {
716      ystart = y+16;
717      yend = y;
716      ystart = y+15;
717      yend = y-1;
718718      ydir = -1;
719719   }
720720   else

Previous 15994 Revisions Next


© 1998-2018 The MESS Team