diff 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
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.h	Fri Jan 18 19:41:59 2002 +0000
+++ b/src/video/x11/SDL_x11video.h	Fri Jan 18 22:02:03 2002 +0000
@@ -85,7 +85,6 @@
     /* The variables used for displaying graphics */
     XImage *Ximage;		/* The X image for our window */
     GC	gc;			/* The graphic context for drawing */
-    int swap_pixels;		/* Flag: true if display is swapped endian */
 
     /* The current width and height of the fullscreen mode */
     int current_w;
@@ -171,7 +170,6 @@
 #define shminfo			(this->hidden->shminfo)
 #define SDL_Ximage		(this->hidden->Ximage)
 #define SDL_GC			(this->hidden->gc)
-#define swap_pixels		(this->hidden->swap_pixels)
 #define current_w		(this->hidden->current_w)
 #define current_h		(this->hidden->current_h)
 #define mouse_last		(this->hidden->mouse_last)