Previous 15994 Revisions Next

r4404 Sunday 8th March, 2009 at 15:24:36 UTC by Wilbert Pol
[GAMEGEAR] Fixed horizontal scrolling when the top rows are locked. (part of bug #1379)
[src/mess/video]smsvdp.c

src/mess/video/smsvdp.c
r4403r4404
595595   }
596596
597597   /* if top 2 rows of screen not affected by horizontal scrolling, then xScroll = 0 */
598   /* else xScroll = reg[0x08] (SMS Only)                                            */
599   if ( IS_GAMEGEAR_VDP )
600   {
601      xScroll = 0x0100 - smsvdp.reg[0x08];
602   }
603   else
604   {
605      xScroll = (((smsvdp.reg[0x00] & 0x40) && (line < 16)) ? 0 : 0x0100 - smsvdp.reg[0x08]);
606   }
598   /* else xScroll = reg[0x08]                                                       */
599   xScroll = (((smsvdp.reg[0x00] & 0x40) && (line < 16)) ? 0 : 0x0100 - smsvdp.reg[0x08]);
607600
608601   xScrollStartColumn = (xScroll >> 3);          /* x starting column tile */
609602

Previous 15994 Revisions Next


© 1998-2018 The MESS Team