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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402509
This commit is contained in:
Bob Pendleton 2007-07-12 20:00:50 +00:00
parent 942236ea2a
commit abcafc2125
15 changed files with 2069 additions and 19 deletions

View file

@ -191,7 +191,8 @@ win32_file_read(SDL_RWops * context, void *ptr, size_t size, size_t maxnum)
void *data = (char *) context->hidden.win32io.buffer.data +
context->hidden.win32io.buffer.size -
context->hidden.win32io.buffer.left;
read_ahead = SDL_min(total_need, (size_t)context->hidden.win32io.buffer.left);
read_ahead =
SDL_min(total_need, (size_t) context->hidden.win32io.buffer.left);
SDL_memcpy(ptr, data, read_ahead);
context->hidden.win32io.buffer.left -= read_ahead;