comparison test/testwm.c @ 2185:2032348afed1

This code adds support for DirectColor visuals to SDL 1.3. The support uses part of the Xmu library. To ensure that the library is available and to keep people form having to install yet another library I have added the essential parts of Xmu in src/video/extensions/XmuStdCmap and an include file in src/video/extensions. The support makes use of standard X11 mechanisms to create color maps and make sure that an application uses the same color map for each window/visual combination. This should make it possible for gamma support to be implemented based on a single color map per application. Hurm... it looks like "make indent" modified a few extra files. Those are getting committed too.
author Bob Pendleton <bob@pendleton.com>
date Thu, 12 Jul 2007 20:00:50 +0000
parents 8b76cc268771
children 6d91cff0ec79
comparison
equal deleted inserted replaced
2184:8f8516e79a13 2185:2032348afed1
173 printf("Posting internal quit request\n"); 173 printf("Posting internal quit request\n");
174 event.type = SDL_USEREVENT; 174 event.type = SDL_USEREVENT;
175 SDL_PushEvent(&event); 175 SDL_PushEvent(&event);
176 } 176 }
177 177
178 static int (SDLCALL *old_filterfunc) (void *, SDL_Event *); 178 static int (SDLCALL * old_filterfunc) (void *, SDL_Event *);
179 static void *old_filterdata; 179 static void *old_filterdata;
180 180
181 int SDLCALL 181 int SDLCALL
182 FilterEvents(void *userdata, SDL_Event * event) 182 FilterEvents(void *userdata, SDL_Event * event)
183 { 183 {