diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-09-03 18:11:32 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-07-11 20:03:30 +0100 |
commit | 185905470924ffcb80687264f153e71169b4705c (patch) | |
tree | 1f0d3b6f02d3cbbc8cacf71e430527646d60965f /src/glut/dos/PC_HW/pc_mouse.c | |
parent | 8e3a7baefe3178800f5de7e42e236183484bb83e (diff) | |
download | glut-185905470924ffcb80687264f153e71169b4705c.tar.gz |
updates from Daniel Borca
Diffstat (limited to 'src/glut/dos/PC_HW/pc_mouse.c')
-rw-r--r-- | src/glut/dos/PC_HW/pc_mouse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/glut/dos/PC_HW/pc_mouse.c b/src/glut/dos/PC_HW/pc_mouse.c index cdf1412..c1176f6 100644 --- a/src/glut/dos/PC_HW/pc_mouse.c +++ b/src/glut/dos/PC_HW/pc_mouse.c @@ -1,5 +1,5 @@ /* - * PC/HW routine collection v1.0 for DOS/DJGPP + * PC/HW routine collection v1.1 for DOS/DJGPP * * Copyright (C) 2002 - Borca Daniel * Email : dborca@yahoo.com @@ -17,7 +17,7 @@ #define CLEAR_MICKEYS() \ do { \ - __asm__ __volatile__ ("movw $0xb, %%ax; int $0x33":::"%eax", "%ecx", "%edx"); \ + __asm __volatile ("movw $0xb, %%ax; int $0x33":::"%eax", "%ecx", "%edx"); \ ox = oy = 0; \ } while (0) @@ -71,7 +71,7 @@ void pc_remove_mouse (void) { if (mouse_callback) { pc_clexit(pc_remove_mouse); - __asm__("\n\ + __asm("\n\ movl %%edx, %%ecx \n\ shrl $16, %%ecx \n\ movw $0x0304, %%ax \n\ @@ -97,7 +97,7 @@ int pc_install_mouse (void) } /* reset mouse and get status */ - __asm__("\n\ + __asm("\n\ xorl %%eax, %%eax \n\ int $0x33 \n\ andl %%ebx, %%eax \n\ @@ -133,7 +133,7 @@ int pc_install_mouse (void) } /* try to hook a call-back */ - __asm__("\n\ + __asm("\n\ pushl %%ds \n\ pushl %%es \n\ movw $0x0303, %%ax \n\ @@ -225,7 +225,7 @@ void pc_unscare_mouse (void) /* not implemented */ } -__asm__("\n\ +__asm("\n\ .balign 4 \n\ .global _mouse_wrapper \n\ _mouse_wrapper: \n\ |