ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/msmouse.c
(Generate patch)

Comparing ray/src/rt/msmouse.c (file contents):
Revision 2.3 by greg, Fri Oct 16 13:09:23 1992 UTC vs.
Revision 2.6 by greg, Sat Feb 22 02:07:28 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   #include <i86.h>
5   #include <graph.h>
6   #include "driver.h"
7  
8 + #define  NULL           0
9 +
10   #define  M_RIGHTBUTT    0x8
11   #define  M_LEFTBUTT     0x2
12   #define  M_MOTION       0x1
# Line 175 | Line 174 | struct driver  *dp;
174  
175      dp->getcur = ms_getcur;
176   }
177 +
178 + void
179 + ms_gcdone( dp )
180 + struct driver  *dp;
181 + {
182 +    union REGS inregs, outregs;
183 +
184 +    if (dp->getcur != ms_getcur)
185 +        return;                 /* not installed */
186 +
187 +    dp->getcur = NULL;
188 +
189 +    /* uninstall watcher */
190 +
191 +    inregs.w.ax = 0;
192 +    int386 (0x33, &inregs, &outregs);
193 + }
194 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines