Diff for /np2/io/mouseif.c between versions 1.2 and 1.3

version 1.2, 2003/10/18 00:35:35 version 1.3, 2003/10/19 14:56:15
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "mousemng.h"  #include        "mousemng.h"
   #include        "i286.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
   
Line 20  void mouseif_sync(void) { Line 21  void mouseif_sync(void) {
         mouseif.rx = mouseif.sx;          mouseif.rx = mouseif.sx;
         mouseif.ry = mouseif.sy;          mouseif.ry = mouseif.sy;
   
         mouseif.lastc = nevent.clock + nevent.baseclock          mouseif.lastc = I286_CLOCK + I286_BASECLOCK + I286_REMCLOCK;
                                                                                         - nevent.remainclock;  
 }  }
   
 static void calc_mousexy(void) {  static void calc_mousexy(void) {
Line 29  static void calc_mousexy(void) { Line 29  static void calc_mousexy(void) {
         UINT32  clock;          UINT32  clock;
         SINT32  diff;          SINT32  diff;
   
         clock = nevent.clock + nevent.baseclock - nevent.remainclock;          clock = I286_CLOCK + I286_BASECLOCK + I286_REMCLOCK;
         diff = clock - mouseif.lastc;          diff = clock - mouseif.lastc;
         if (diff >= 2000) {          if (diff >= 2000) {
                 SINT16 dx;                  SINT16 dx;

Removed from v.1.2  
changed lines
  Added in v.1.3


RetroPC.NET-CVS <cvs@retropc.net>