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.2 by greg, Fri Oct 9 15:24:02 1992 UTC vs.
Revision 2.3 by greg, Fri Oct 16 13:09:23 1992 UTC

# Line 27 | Line 27 | static void _loadds far mouse_handler (int max, int mc
27   #pragma aux mouse_handler parm [EAX] [ECX] [EDX]
28          mouse_event = max;
29          mouse_xpos = mcx;
30 <        mouse_ypos = mdx * (long)ydispsize / 200;       /* kludge */
30 >        mouse_ypos = mdx;
31   }
32   #pragma on (check_stack)
33  
# Line 152 | Line 152 | struct driver  *dp;
152      xdispsize = dp->xsiz;
153      ydispsize = dp->ysiz;
154      crad = dp->ysiz/40;
155 +
156 +    /* set screen limits */
157 +
158 +    inregs.w.ax = 0x7;          /* horizontal resolution */
159 +    inregs.w.cx = 0;
160 +    inregs.w.dx = xdispsize-1;
161 +    int386x( 0x33, &inregs, &outregs, &sregs );
162 +    inregs.w.ax = 0x8;          /* vertical resolution */
163 +    inregs.w.cx = 0;
164 +    inregs.w.dx = ydispsize-1;
165 +    int386x( 0x33, &inregs, &outregs, &sregs );
166  
167      /* install watcher */
168  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines