Previous 15994 Revisions Next

r6752 Friday 25th December, 2009 at 12:25:25 UTC by Barry Rodewald
[FMTOWNS] Improved horizontal scrolling a bit.
[src/mess/video]fmtowns.c

src/mess/video/fmtowns.c
r6751r6752
633633   }
634634   else
635635   {
636      xstart = x+2;
637      xend = x+18;
636      xstart = x+1;
637      xend = x+17;
638638      xdir = 2;
639639   }
640640   if(yflip)
r6751r6752
813813   {
814814      if(!(towns_video_reg[0] & 0x10))
815815         return;
816      off += (towns_crtc_reg[21] & 0xfffe) << 2;  // initial offset
816      off += (towns_crtc_reg[21]) << 2;  // initial offset
817817      if(towns_crtc_reg[27] & 0x0100)
818818         hzoom = 2;
819819   }
820820   else
821821   {
822      off += (towns_crtc_reg[17] & 0xfffe) << 2;  // initial offset
822      off += (towns_crtc_reg[17]) << 2;  // initial offset
823823      if(towns_crtc_reg[27] & 0x0001)
824824         hzoom = 2;
825825   }
826826
827827   off += line * linesize;
828   
828
829829   if(hzoom == 1)
830830   {
831831      for(x=rect->min_x;x<rect->max_x;x++)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team