comparison 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
comparison
equal deleted inserted replaced
291:68a8a8237c09 292:eadc0746dfaf
59 if ( use_dgamouse && BUGGY_XFREE86(==, 4000) ) { 59 if ( use_dgamouse && BUGGY_XFREE86(==, 4000) ) {
60 use_dgamouse = 0; 60 use_dgamouse = 0;
61 } 61 }
62 /* Only use DGA mouse if the cursor is not showing (in relative mode) */ 62 /* Only use DGA mouse if the cursor is not showing (in relative mode) */
63 if ( use_dgamouse && local_X11 && !(using_dga & DGA_MOUSE) && 63 if ( use_dgamouse && local_X11 && !(using_dga & DGA_MOUSE) &&
64 XF86DGAQueryExtension(SDL_Display, &dga_event, &dga_error) && 64 SDL_NAME(XF86DGAQueryExtension)(SDL_Display, &dga_event, &dga_error) &&
65 XF86DGAQueryVersion(SDL_Display, &dga_major, &dga_minor) ) { 65 SDL_NAME(XF86DGAQueryVersion)(SDL_Display, &dga_major, &dga_minor) ) {
66 if ( XF86DGADirectVideo(SDL_Display, SDL_Screen, XF86DGADirectMouse) ) { 66 if ( SDL_NAME(XF86DGADirectVideo)(SDL_Display, SDL_Screen, XF86DGADirectMouse) ) {
67 using_dga |= DGA_MOUSE; 67 using_dga |= DGA_MOUSE;
68 } 68 }
69 } 69 }
70 #endif /* XFREE86_DGAMOUSE */ 70 #endif /* XFREE86_DGAMOUSE */
71 } 71 }
75 { 75 {
76 #ifdef XFREE86_DGAMOUSE 76 #ifdef XFREE86_DGAMOUSE
77 int flags; 77 int flags;
78 78
79 if ( using_dga & DGA_MOUSE ) { 79 if ( using_dga & DGA_MOUSE ) {
80 XF86DGAQueryDirectVideo(SDL_Display, SDL_Screen, &flags); 80 SDL_NAME(XF86DGAQueryDirectVideo)(SDL_Display, SDL_Screen, &flags);
81 if ( ! (flags & XF86DGADirectMouse) ) { 81 if ( ! (flags & XF86DGADirectMouse) ) {
82 XF86DGADirectVideo(SDL_Display,SDL_Screen,XF86DGADirectMouse); 82 SDL_NAME(XF86DGADirectVideo)(SDL_Display,SDL_Screen,XF86DGADirectMouse);
83 } 83 }
84 } 84 }
85 #endif 85 #endif
86 } 86 }
87 87
88 void X11_DisableDGAMouse(_THIS) 88 void X11_DisableDGAMouse(_THIS)
89 { 89 {
90 #ifdef XFREE86_DGAMOUSE 90 #ifdef XFREE86_DGAMOUSE
91 if ( using_dga & DGA_MOUSE ) { 91 if ( using_dga & DGA_MOUSE ) {
92 XF86DGADirectVideo(SDL_Display, SDL_Screen, 0); 92 SDL_NAME(XF86DGADirectVideo)(SDL_Display, SDL_Screen, 0);
93 using_dga &= ~DGA_MOUSE; 93 using_dga &= ~DGA_MOUSE;
94 } 94 }
95 #endif /* XFREE86_DGAMOUSE */ 95 #endif /* XFREE86_DGAMOUSE */
96 } 96 }