Mercurial > sdl-ios-xcode
comparison src/video/dga/SDL_dgaevents.c @ 101:825b2fa28e2e
DGA video driver is now thread-safe
Improved DGA hardware acceleration code
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 12 Jul 2001 20:42:22 +0000 |
parents | 74212992fb08 |
children | e8157fcb3114 |
comparison
equal
deleted
inserted
replaced
100:a1c973c35fef | 101:825b2fa28e2e |
---|---|
95 } | 95 } |
96 | 96 |
97 void DGA_PumpEvents(_THIS) | 97 void DGA_PumpEvents(_THIS) |
98 { | 98 { |
99 /* Keep processing pending events */ | 99 /* Keep processing pending events */ |
100 LOCK_DISPLAY(); | |
100 while ( X11_Pending(DGA_Display) ) { | 101 while ( X11_Pending(DGA_Display) ) { |
101 DGA_DispatchEvent(this); | 102 DGA_DispatchEvent(this); |
102 } | 103 } |
104 UNLOCK_DISPLAY(); | |
103 } | 105 } |
104 | 106 |
105 void DGA_InitOSKeymap(_THIS) | 107 void DGA_InitOSKeymap(_THIS) |
106 { | 108 { |
107 X11_InitKeymap(); | 109 X11_InitKeymap(); |