summaryrefslogtreecommitdiffstats
path: root/src/glut/dos/mouse.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-02-20 15:43:52 +0000
committerBrian Paul <[email protected]>2003-02-20 15:43:52 +0000
commit60f84fcc91c5fb86843c528416399303da113a2f (patch)
tree698d04b625c6efac205d76ae7d68b074102090f2 /src/glut/dos/mouse.c
parent449e47f06a46c42fb9895d13f37b599600225e56 (diff)
latest DOS updates (Daniel Borca)
Diffstat (limited to 'src/glut/dos/mouse.c')
-rw-r--r--src/glut/dos/mouse.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/glut/dos/mouse.c b/src/glut/dos/mouse.c
index c67f8093b14..d82f5e8a8c8 100644
--- a/src/glut/dos/mouse.c
+++ b/src/glut/dos/mouse.c
@@ -39,19 +39,7 @@ int g_mouse_x = 0, g_mouse_y = 0;
void __glutInitMouse (void)
{
if ((g_mouse = pc_install_mouse())) {
- GLint yorg;
- GLint rect[4];
-
- DMesaGetIntegerv(DMESA_Y_ORIGIN, &yorg);
- if (yorg) {
- rect[1] = g_screen_h - g_curwin->height;
- } else {
- rect[1] = g_curwin->ypos;
- }
- rect[0] = g_curwin->xpos;
- rect[2] = rect[0] + g_curwin->width - 1;
- rect[3] = rect[1] + g_curwin->height - 1;
- pc_mouse_area(rect[0], rect[1], rect[2], rect[3]);
+ pc_mouse_area(g_curwin->xpos, g_curwin->ypos, g_curwin->xpos + g_curwin->width - 1, g_curwin->ypos + g_curwin->height - 1);
g_curwin->show_mouse = (g_curwin->mouse || g_curwin->motion || g_curwin->passive);
}