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.
This commit is contained in:
Bob Pendleton
2007-07-12 20:00:50 +00:00
parent 08ab0f198f
commit 3dc377941a
15 changed files with 2069 additions and 19 deletions

View File

@@ -245,7 +245,7 @@ CommonArg(CommonState * state, int index)
if (!argv[index]) {
return -1;
}
state->audiospec.channels = (Uint8)SDL_atoi(argv[index]);
state->audiospec.channels = (Uint8) SDL_atoi(argv[index]);
return 2;
}
if (SDL_strcasecmp(argv[index], "--samples") == 0) {
@@ -253,7 +253,7 @@ CommonArg(CommonState * state, int index)
if (!argv[index]) {
return -1;
}
state->audiospec.samples = (Uint16)SDL_atoi(argv[index]);
state->audiospec.samples = (Uint16) SDL_atoi(argv[index]);
return 2;
}
if ((SDL_strcasecmp(argv[index], "-h") == 0)
@@ -498,7 +498,7 @@ PrintRenderer(SDL_RendererInfo * info)
fprintf(stderr, ")\n");
fprintf(stderr, " Texture formats (%d): ", info->num_texture_formats);
for (i = 0; i < (int)info->num_texture_formats; ++i) {
for (i = 0; i < (int) info->num_texture_formats; ++i) {
if (i > 0) {
fprintf(stderr, ", ");
}

View File

@@ -175,7 +175,7 @@ HotKey_Quit(void)
SDL_PushEvent(&event);
}
static int (SDLCALL *old_filterfunc) (void *, SDL_Event *);
static int (SDLCALL * old_filterfunc) (void *, SDL_Event *);
static void *old_filterdata;
int SDLCALL