diff options
Diffstat (limited to 'src/glut/dos/mouse.c')
-rw-r--r-- | src/glut/dos/mouse.c | 14 |
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);
}
|