summaryrefslogtreecommitdiffstats
path: root/src/glut/dos/mouse.c
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2005-01-14 08:37:20 +0000
committerDaniel Borca <[email protected]>2005-01-14 08:37:20 +0000
commit7da875d55f6dc9f18e23dd8af9ae7f5782cd3a72 (patch)
treef14744a4eb497de9045a20726dbf2fdbf474d87b /src/glut/dos/mouse.c
parentf4bff83c3211297159e498c1115b993a5cba9b4b (diff)
changed coding style
Diffstat (limited to 'src/glut/dos/mouse.c')
-rw-r--r--src/glut/dos/mouse.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/glut/dos/mouse.c b/src/glut/dos/mouse.c
index 373ac49ffed..2d8a8ed53df 100644
--- a/src/glut/dos/mouse.c
+++ b/src/glut/dos/mouse.c
@@ -21,7 +21,7 @@
/*
* DOS/DJGPP glut driver v1.3 for Mesa
*
- * Copyright (C) 2002 - Borca Daniel
+ * Copyright (C) 2002 - Daniel Borca
* Web : http://www.geocities.com/dborca
*/
@@ -30,31 +30,30 @@
#include "glutint.h"
-
int g_mouse;
int g_mouse_x = 0, g_mouse_y = 0;
-
-void __glutInitMouse (void)
+void
+__glutInitMouse (void)
{
- if ((g_mouse = pc_install_mouse())) {
- pc_mouse_area(g_curwin->xpos, g_curwin->ypos, g_curwin->xpos + g_curwin->width - 1, g_curwin->ypos + g_curwin->height - 1);
+ if ((g_mouse = pc_install_mouse())) {
+ 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);
- }
+ g_curwin->show_mouse = (g_curwin->mouse || g_curwin->motion || g_curwin->passive);
+ }
}
-
-void APIENTRY glutSetCursor (int cursor)
+void APIENTRY
+glutSetCursor (int cursor)
{
- /* XXX completely futile until full mouse support (maybe never) */
+ /* XXX completely futile until full mouse support (maybe never) */
}
-
-void APIENTRY glutWarpPointer (int x, int y)
+void APIENTRY
+glutWarpPointer (int x, int y)
{
- pc_warp_mouse(x, y);
+ pc_warp_mouse(x, y);
}