diff options
author | Brian Paul <[email protected]> | 2003-03-29 16:14:01 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-03-29 16:14:01 +0000 |
commit | 183aea64d3d45bfed30f07079a0c68fa7165bc0b (patch) | |
tree | 4edb6e0aa92242e28e0400a49504459fcf377f70 /src/glut/dos/PC_HW | |
parent | a8d4963fbcfe370a571671a250a1ae8dd894a94a (diff) |
DOS updates from Daniel Borca
Diffstat (limited to 'src/glut/dos/PC_HW')
-rw-r--r-- | src/glut/dos/PC_HW/pc_keyb.c | 5 | ||||
-rw-r--r-- | src/glut/dos/PC_HW/pc_mouse.c | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/glut/dos/PC_HW/pc_keyb.c b/src/glut/dos/PC_HW/pc_keyb.c index 6475be35086..ec509c2ace7 100644 --- a/src/glut/dos/PC_HW/pc_keyb.c +++ b/src/glut/dos/PC_HW/pc_keyb.c @@ -420,8 +420,9 @@ int pc_readkey (void) if (keyboard_installed) {
int key;
- do {
- } while (key_buffer.start==key_buffer.end);
+ while (key_buffer.start==key_buffer.end) {
+ __dpmi_yield();
+ }
DISABLE();
key = key_buffer.key[key_buffer.start++];
diff --git a/src/glut/dos/PC_HW/pc_mouse.c b/src/glut/dos/PC_HW/pc_mouse.c index 1740bfbac43..cf8fb668ba0 100644 --- a/src/glut/dos/PC_HW/pc_mouse.c +++ b/src/glut/dos/PC_HW/pc_mouse.c @@ -274,6 +274,5 @@ _mouse_wrap: \n\ movl %esi, %esp \n\
popl %es \n\
iret \n\
- .balign 4 \n\
.global _mouse_wrap_end \n\
_mouse_wrap_end:.long 0, 0");
|