Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11dga.c @ 292:eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Incorporated XFree86 extension libraries into the source
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 05 Mar 2002 19:55:32 +0000 |
parents | e8157fcb3114 |
children | f6ffac90895c |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11dga.c Sat Mar 02 16:50:35 2002 +0000 +++ b/src/video/x11/SDL_x11dga.c Tue Mar 05 19:55:32 2002 +0000 @@ -61,9 +61,9 @@ } /* Only use DGA mouse if the cursor is not showing (in relative mode) */ if ( use_dgamouse && local_X11 && !(using_dga & DGA_MOUSE) && - XF86DGAQueryExtension(SDL_Display, &dga_event, &dga_error) && - XF86DGAQueryVersion(SDL_Display, &dga_major, &dga_minor) ) { - if ( XF86DGADirectVideo(SDL_Display, SDL_Screen, XF86DGADirectMouse) ) { + SDL_NAME(XF86DGAQueryExtension)(SDL_Display, &dga_event, &dga_error) && + SDL_NAME(XF86DGAQueryVersion)(SDL_Display, &dga_major, &dga_minor) ) { + if ( SDL_NAME(XF86DGADirectVideo)(SDL_Display, SDL_Screen, XF86DGADirectMouse) ) { using_dga |= DGA_MOUSE; } } @@ -77,9 +77,9 @@ int flags; if ( using_dga & DGA_MOUSE ) { - XF86DGAQueryDirectVideo(SDL_Display, SDL_Screen, &flags); + SDL_NAME(XF86DGAQueryDirectVideo)(SDL_Display, SDL_Screen, &flags); if ( ! (flags & XF86DGADirectMouse) ) { - XF86DGADirectVideo(SDL_Display,SDL_Screen,XF86DGADirectMouse); + SDL_NAME(XF86DGADirectVideo)(SDL_Display,SDL_Screen,XF86DGADirectMouse); } } #endif @@ -89,7 +89,7 @@ { #ifdef XFREE86_DGAMOUSE if ( using_dga & DGA_MOUSE ) { - XF86DGADirectVideo(SDL_Display, SDL_Screen, 0); + SDL_NAME(XF86DGADirectVideo)(SDL_Display, SDL_Screen, 0); using_dga &= ~DGA_MOUSE; } #endif /* XFREE86_DGAMOUSE */