Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/dga/SDL_dgaevents.c Wed Jul 11 20:18:52 2001 +0000 +++ b/src/video/dga/SDL_dgaevents.c Thu Jul 12 20:42:22 2001 +0000 @@ -97,9 +97,11 @@ void DGA_PumpEvents(_THIS) { /* Keep processing pending events */ + LOCK_DISPLAY(); while ( X11_Pending(DGA_Display) ) { DGA_DispatchEvent(this); } + UNLOCK_DISPLAY(); } void DGA_InitOSKeymap(_THIS)