Commit Graph

1459 Commits

Author SHA1 Message Date
Bob Pendleton
3dc377941a 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.
2007-07-12 20:00:50 +00:00
Sam Lantinga
08ab0f198f Merged Ryan's patch from revision 3238 in SDL 1.2 2007-07-12 08:07:30 +00:00
Sam Lantinga
691d57d9df Whoops, needed to remove the other version of getlocale() 2007-07-12 07:55:18 +00:00
Sam Lantinga
46a6657c71 Fixed bug #455
If passed "" for the character set, let iconv_open() interpret it as
locale.

This was merged from revision 3234,3235 from SDL 1.2
2007-07-12 07:52:50 +00:00
Sam Lantinga
be4cb77638 Yes, you need to set the pixel format before creating a context. 2007-07-12 06:59:43 +00:00
Sam Lantinga
49f67ffc0c Visual C++ compiler warning fixes 2007-07-12 06:53:20 +00:00
Sam Lantinga
45339ba922 Creating a context makes it current, per the documentation.
Applied a variant of the multi-card OpenGL fix from SDL 1.2
2007-07-12 06:31:36 +00:00
Sam Lantinga
d92137dfe0 Fixed joystick name detection - merged from revision 3226 on SDL 1.2 branch 2007-07-12 05:31:08 +00:00
Sam Lantinga
c6f4fbead2 indent 2007-07-11 14:51:49 +00:00
Sam Lantinga
b7712d9f7a Fixed compiling YUV code 2007-07-11 14:50:21 +00:00
Sam Lantinga
da74dd24a7 Fixed compiling the x11 driver 2007-07-11 14:49:44 +00:00
Sam Lantinga
d1184a5c65 Needed an autorelease pool around the NSText allocation 2007-07-11 14:44:28 +00:00
Sam Lantinga
c74b896ae4 Added key composition support, courtesy of Kuon 2007-07-11 08:09:20 +00:00
Ryan C. Gordon
74b0ae1377 Merged r3211:3213 from branches/SDL-1.2: YUV MMX inline asm for GCC. 2007-07-11 07:39:01 +00:00
Sam Lantinga
cb51385055 indent doesn't know how to handle inline asm 2007-07-11 04:47:25 +00:00
Ryan C. Gordon
fe87971b62 Merged r3201:3204 from branches/SDL-1.2: win32 rwops tweaks. 2007-07-10 19:06:02 +00:00
Sam Lantinga
892d73c061 Merged memory leak fix from SDL 1.2 2007-07-10 16:05:50 +00:00
Bob Pendleton
d247838455 Added stubs for x11 gamma functions and enabled them in SDL_x11video.c 2007-07-10 14:44:20 +00:00
Sam Lantinga
f1a7210ec4 Oh yeah, they're boolean values... 2007-07-10 05:29:56 +00:00
Sam Lantinga
4148b45eb1 Updated to use size_t instead of int for amounts of data. 2007-07-10 05:25:19 +00:00
Sam Lantinga
dc327d9d79 Merged read-ahead support for Win32 file I/O from SDL 1.2 revision 3183 2007-07-10 05:01:22 +00:00
Ryan C. Gordon
2d8bb10980 Merged r3165:3166 from branches/SDL-1.2: gcc -Wall fix in arts audio target. 2007-07-08 01:37:48 +00:00
Sam Lantinga
581076f3aa Reverted mousewheel support in 1.2, since it breaks binary compatibility. 2007-07-06 13:45:10 +00:00
Sam Lantinga
49c02d670f Fixed bug #382
Added horizontal scrolling support
2007-07-06 09:22:18 +00:00
Sam Lantinga
cad0ed9d4d Fixed bug #77
If the ARB pixel format selection fails, use a version of ChoosePixelFormat() that doesn't return a less capable format than was requested.
2007-07-05 06:14:26 +00:00
Sam Lantinga
6948a5048a Fixed mode code under VMware running Windows 98 2007-07-05 05:57:31 +00:00
Sam Lantinga
df1fb188b1 Removed campatibility behavior for 1.3 2007-07-05 04:34:48 +00:00
Ryan C. Gordon
55bedc2819 Merged r3138:3139 from branches/SDL-1.2: Don't init audio callback buffer.
(This already had a concession for devices opened via the 1.2 entry points,
 I've changed it to respect the environment variable and do it for all devices
 now.)
2007-07-05 02:30:10 +00:00
Sam Lantinga
bdab6824fd Fix for bug #447 merged from SDL 1.2 2007-07-04 08:01:04 +00:00
Sam Lantinga
c123a18337 Fixed bug #349
Solaris doesn't support the LATIN1 character set alias.

Merged from 1.2 svn revision 3133f
2007-07-04 07:08:16 +00:00
Sam Lantinga
803256bf09 stupid indent 2007-07-03 09:55:29 +00:00
Ryan C. Gordon
ee105c10fd Merged r3125:3126 from branches/SDL-1.2: yasm/nasm warning fix. 2007-07-03 09:54:27 +00:00
Sam Lantinga
34f8946d43 iconv() doesn't write to the data, just make compilers happy 2007-06-28 08:35:35 +00:00
Sam Lantinga
9822c65fd8 Merge iconv const changes from 1.2
I'm not entirely happy with them.  Maybe the right way to go is to leave
SDL_iconv() taking a non-const inbuf?  How often are we converting const
strings anyway?
2007-06-28 06:57:08 +00:00
Ryan C. Gordon
bfff23d04a Merged r3106:3107 from branches/SDL-1.2: Hermes PIC fixes. 2007-06-27 10:17:35 +00:00
Ryan C. Gordon
65d8a6d38f Merged r3094:3095 from branches/SDL-1.2: Visual C++ 6.0 fixes. 2007-06-21 18:21:49 +00:00
Sam Lantinga
c02a69953d Fixes for compiling with Visual C++ 8.0 Express Edition 2007-06-19 05:53:56 +00:00
Sam Lantinga
2fca78dd3e Key repeat is handled by the OS, since text input is now decoupled from physical key events. 2007-06-16 15:32:04 +00:00
Ryan C. Gordon
ff37dddab2 Merged r3087:3089 from branches/SDL-1.2: WM_XBUTTON support. 2007-06-16 05:29:28 +00:00
Ryan C. Gordon
04d6e513a9 Removed EPOC port from the 1.3 branch. 2007-06-15 15:54:07 +00:00
Ryan C. Gordon
f9c61022d2 Reworked r3067:3068 from branches/SDL-1.2: arts unavailable hardware bug fix. 2007-06-14 14:22:54 +00:00
Sam Lantinga
b6ab6bf6d5 make indent 2007-06-14 13:21:29 +00:00
Sam Lantinga
4c81f8c5cc Fixed running on Windows under VMware 2007-06-14 06:32:36 +00:00
Ryan C. Gordon
9f28051f78 Merged r3062:3063 from branches/SDL-1.2: clear inaccurate x11dyn error strings. 2007-06-13 08:02:43 +00:00
Patrice Mandin
982014481e Avoid switch to supervisor mode in SDL_GetTicks, by updating system counter from vbl interrupt 2007-06-09 19:58:41 +00:00
Patrice Mandin
9aeba59294 Set supervisor as volatile as it is modified from an interrupt 2007-06-08 21:44:55 +00:00
Ryan C. Gordon
15db051b10 Merged r3047:3048 from branches/SDL-1.2: SDL_revcpy() off-by-one fix. 2007-06-04 11:45:10 +00:00
Ryan C. Gordon
fd051d952d Merged r3044:3045 from branches/SDL-1.2: directfb reported screen size fix. 2007-06-04 11:17:46 +00:00
Sam Lantinga
defc2572f2 Fixed build issues on Mac OS X 2007-05-31 14:46:01 +00:00
Ryan C. Gordon
5045fc5ea4 Merged r3029:3030 from branches/SDL-1.2: Mac OS X joystick axis fix. 2007-05-29 12:14:16 +00:00