--- ray/src/rt/msmouse.c 1992/10/16 13:09:23 2.3 +++ ray/src/rt/msmouse.c 2003/02/22 02:07:28 2.6 @@ -1,13 +1,12 @@ -/* Copyright (c) 1992 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: msmouse.c,v 2.6 2003/02/22 02:07:28 greg Exp $"; #endif - #include #include #include "driver.h" +#define NULL 0 + #define M_RIGHTBUTT 0x8 #define M_LEFTBUTT 0x2 #define M_MOTION 0x1 @@ -175,3 +174,21 @@ struct driver *dp; dp->getcur = ms_getcur; } + +void +ms_gcdone( dp ) +struct driver *dp; +{ + union REGS inregs, outregs; + + if (dp->getcur != ms_getcur) + return; /* not installed */ + + dp->getcur = NULL; + + /* uninstall watcher */ + + inregs.w.ax = 0; + int386 (0x33, &inregs, &outregs); +} +