comparison src/video/x11/SDL_x11video.h @ 270:37fa1484f71b

From: "Mattias Engdeg�rd" <f91-men@nada.kth.se> To: slouken@devolution.com Subject: Re: [SDL] Question about SDL_FillRect() I benchmarked with and without clipping UpdateRects and was unable to find any difference on my moderately slow machine. Anyway, I haven't added clipping in this patch, but fixed a couple of bugs and generally cleaned up some of the X11 image code. Most importantly, UpdateRects now checks for both zero height and width. Also, I eliminated the entire code to byteswap X11 images since X11 can do that automatically if you ask it nicely :-)
author Sam Lantinga <slouken@libsdl.org>
date Fri, 18 Jan 2002 22:02:03 +0000
parents e8157fcb3114
children eadc0746dfaf
comparison
equal deleted inserted replaced
269:4125b9859c71 270:37fa1484f71b
83 #endif 83 #endif
84 84
85 /* The variables used for displaying graphics */ 85 /* The variables used for displaying graphics */
86 XImage *Ximage; /* The X image for our window */ 86 XImage *Ximage; /* The X image for our window */
87 GC gc; /* The graphic context for drawing */ 87 GC gc; /* The graphic context for drawing */
88 int swap_pixels; /* Flag: true if display is swapped endian */
89 88
90 /* The current width and height of the fullscreen mode */ 89 /* The current width and height of the fullscreen mode */
91 int current_w; 90 int current_w;
92 int current_h; 91 int current_h;
93 92
169 #define using_dga (this->hidden->using_dga) 168 #define using_dga (this->hidden->using_dga)
170 #define use_mitshm (this->hidden->use_mitshm) 169 #define use_mitshm (this->hidden->use_mitshm)
171 #define shminfo (this->hidden->shminfo) 170 #define shminfo (this->hidden->shminfo)
172 #define SDL_Ximage (this->hidden->Ximage) 171 #define SDL_Ximage (this->hidden->Ximage)
173 #define SDL_GC (this->hidden->gc) 172 #define SDL_GC (this->hidden->gc)
174 #define swap_pixels (this->hidden->swap_pixels)
175 #define current_w (this->hidden->current_w) 173 #define current_w (this->hidden->current_w)
176 #define current_h (this->hidden->current_h) 174 #define current_h (this->hidden->current_h)
177 #define mouse_last (this->hidden->mouse_last) 175 #define mouse_last (this->hidden->mouse_last)
178 #define mouse_accel (this->hidden->mouse_accel) 176 #define mouse_accel (this->hidden->mouse_accel)
179 #define mouse_relative (this->hidden->mouse_relative) 177 #define mouse_relative (this->hidden->mouse_relative)