Commit Graph

208 Commits

Author SHA1 Message Date
Sam Lantinga
b062c353b4 Fixed bug #185
The SDL platform header shouldn't dictate the OS target API for other
applications.  The build system should define the target API for building
SDL internally.
2006-04-13 14:14:06 +00:00
Sam Lantinga
1374682c44 Fixed bug #176
[I'm fixing this for the public headers, but I'm not going to bother for the SDL library code (yet)]

To clarify: Normaly, GCC (or, to be precise, the preprocessor) will ignore
this, and compile the code happily. However, one can specify -Wundef to get a
warning about this.

One can probably argue whether to consider this a bug or not; but I think that
(a) from a semantic point of view, using "#if FOO" when FOO is not defined is
strange, and (b) since it is possible to trigger a warning about this, and a
trivial fix exists, it should be corrected.

I can think of two alternative patches, BTW:
1) Simply use #define HAVE_FOO 0, instead of not defining HAVE_FOO at all
2) Change
  #if HAVE_FOO
to
  #if HAVE_FOO+0
which always does the right thing.

But I think I still prefer the attached patch :-).
2006-04-13 13:38:40 +00:00
Sam Lantinga
b0519469db Fixes bug #195:
The proper name of Apple's operating system is "Mac OS X" not "MacOS X", as can
bee seen in many places, for example http://www.apple.com/macosx/). This
contrasts the naming of the old operating system, which was called "MacOS" and
today is often refered to as "MacOS Classic".

The attached patches fixes the misuse of the name "MacOS X" in both the SDL12
and sdlweb CVS modules.
2006-04-13 13:08:26 +00:00
Sam Lantinga
80c113cde7 From Anders F Bjorklund:
The current definition of int32_t, uint32_t, uintptr_t
doesn't match what the Mac system headers already have...

Since it's an old 16/32 bit platform, the system headers
expect the types to use "long" and not "int" like they do.
2006-04-12 14:38:47 +00:00
Sam Lantinga
150575a5cf From Anders F Bjorklund:
When switching to "UNIX-style paths" as needed for the new includes,
including <GL/gl.h> and <GL/glu.h> doesn't work anymore on Mac OS...

The two headers are really located in the OpenGL SDK 1.2 CFM like this:
OpenGL:Headers:gl.h
OpenGL:Headers:glu.h

There are also some compat copies, that *used* to work with Mac paths:
OpenGL:Headers:GL/gl.h
OpenGL:Headers:GL/glu.h

The easiest fix is to make SDL_opengl.h include the proper header names,
by adding a special case for the MACOS platform in addition to the MACOSX
2006-04-12 14:37:05 +00:00
Sam Lantinga
dcc7daa066 A less rude way of doing the same thing... 2006-03-23 21:55:13 +00:00
Sam Lantinga
07a8850934 These files should be included from SDL_config.h (so they get SDL_platform.h) 2006-03-23 21:52:47 +00:00
Sam Lantinga
e1ae9a0b81 Fixed bug #175
Removed obsolete .cvsignore files... whee!
2006-03-23 21:39:58 +00:00
Sam Lantinga
235cf60d67 *** empty log message *** 2006-03-23 21:39:02 +00:00
Sam Lantinga
967de2d3dd Fixed bug #171
SDL_config.h is no longer in CVS.  Instead, configure will generate it for
systems that use configure, and we always copy SDL_config.h.default to
SDL_config.h before generating a snapshot or release archive.

Also fixed a couple of uninstall issues.
2006-03-23 21:28:33 +00:00
Sam Lantinga
45d6790639 *sigh* 2006-03-23 15:22:40 +00:00
Ryan C. Gordon
21c1fa5e46 More dynamic X11 mangling...should fix NetBSD builds. And hopefully doesn't
break 6 other platforms.  :)
2006-03-23 08:43:37 +00:00
Sam Lantinga
5542688e36 Only use the visibility attribute in gcc 4.0 or newer 2006-03-23 07:34:03 +00:00
Ryan C. Gordon
b1bcd26c92 Xrandr support in the X11 target.
Fixes Bugzilla #109, and as a bonus, Bugzilla #145, too!
2006-03-22 11:13:58 +00:00
Ryan C. Gordon
aa2b3e6f26 Reverted SDL_config.h from accidental checkin. (see Bugzilla #171). 2006-03-22 05:12:07 +00:00
Ryan C. Gordon
eb3f189e59 Updated dynamic X11 code. See details in Bugzilla #170. 2006-03-22 05:00:59 +00:00
Sam Lantinga
d48c53fb8f Default to use the visibility attribute, on gcc (is this okay?) 2006-03-22 04:51:44 +00:00
Ryan C. Gordon
b08954dad5 Added support for gcc4's -fvisibility=hidden option.
Fixes Bugzilla #169.
2006-03-22 01:28:36 +00:00
Sam Lantinga
15e6a9aba3 *** empty log message *** 2006-03-21 09:40:01 +00:00
Sam Lantinga
2c5f72ddbf Good idea, renaming OpenBSD audio to BSD audio. 2006-03-21 09:33:54 +00:00
Sam Lantinga
7978390e19 Fixed bug #52
Integrated most of the NetBSD and DragonFly patches at:
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/SDL/patches/

Thanks to Thomas Klausner for defailed information on the patches
2006-03-21 08:54:50 +00:00
Sam Lantinga
e9e9f43bc0 Added current_w and current_h to the SDL_VideoInfo structure, which is set to the desktop resolution during video intialization, and then set to the current resolution when a video mode is set.
SDL_SetVideoMode() now accepts 0 for width or height and will use the current video mode (or the desktop mode if no mode has been set.)
2006-03-15 17:46:41 +00:00
Sam Lantinga
9491ae58df By default all the real targets have dummy audio/video and disk audio. 2006-03-14 16:19:32 +00:00
Ryan C. Gordon
58b18d03af Implemented dummy audio driver.
Fixes Bugzilla #161.
2006-03-14 08:53:33 +00:00
Sam Lantinga
b61fcd32f3 *** empty log message *** 2006-03-13 05:44:14 +00:00
Sam Lantinga
9e352303d7 Updated MacOS Classic build 2006-03-13 05:36:42 +00:00
Sam Lantinga
3227f8dde8 Added _strnicmp support 2006-03-13 02:12:39 +00:00
Sam Lantinga
2b03f1c722 Win32 fixes 2006-03-13 02:06:33 +00:00
Sam Lantinga
165dd0af40 Fixed bug #112
Added SDL_GetKeyRepeat()
2006-03-13 01:41:32 +00:00
Sam Lantinga
a50362ff8f Fixed bug #139
The text in SDL_WM_SetCaption() is in UTF-8 encoding.
2006-03-13 01:33:58 +00:00
Sam Lantinga
48c546dc44 Added UTF-8 <-> UTF-16 <-> UTF-32 <-> UCS-2 <-> UCS-4 conversion capability 2006-03-13 01:08:00 +00:00
Sam Lantinga
bba47a076b Fixes from Dmitry Yakimov:
fixed bugs 159 and 160:

+ added threaded timers support
! fixed restoring sdl window focus (AV in windows message handler)
! disabled forgotten cdrom and joystick in config file.
* disabled minimizing sdl window while loosing focus.
  PocketPC does not have a task bar, so it is an inconvenient and unusual
  behaviour for PPC users.
+ added WIN_Paint handler for GAPI
! fixed loosing focus while using GAPI videi driver

+ added TestTimer project
* removed unnecessary macros (ENABLE_WINDIB ...) from projects
2006-03-11 23:46:45 +00:00
Sam Lantinga
01ddf01384 X11 support isn't installed by default 2006-03-11 15:47:56 +00:00
Sam Lantinga
14c1061d01 Dynamic OpenGL loading is the default now. :) 2006-03-09 15:11:15 +00:00
Sam Lantinga
08dc55989c Prettified. :) 2006-03-09 13:34:58 +00:00
Sam Lantinga
5965120edc Eric is setting up X11 support for the XCode project 2006-03-09 13:25:43 +00:00
Sam Lantinga
887d7dce86 Cleaning up warnings on MacOS X 2006-03-09 06:33:21 +00:00
Sam Lantinga
339f03befc Added documentation on how to build a completely useless SDL library. :) 2006-03-08 08:30:17 +00:00
Sam Lantinga
18e8dad27d More Win64 updates 2006-03-07 05:21:32 +00:00
Sam Lantinga
007238280e Updated MacOS X support 2006-03-07 04:58:30 +00:00
Sam Lantinga
99a9f55744 Only use Altivec on PowerPC architecture 2006-03-06 19:20:38 +00:00
Sam Lantinga
eee9b381ab Get Microsoft's preprocessor symbols in there 2006-03-06 16:37:18 +00:00
Sam Lantinga
a745f33d22 Maybe it's easier to collect the big-endian architectures. :) 2006-03-06 16:33:23 +00:00
Sam Lantinga
a765c58124 Whoops, built without libC support - doh! 2006-03-06 15:29:41 +00:00
Sam Lantinga
0fa63c4bba Enabled libc support on Win32, so we don't break binary compatibility in 1.2 2006-03-06 07:42:36 +00:00
Sam Lantinga
d1d0afa53e Fixed declarations to match mingw includes 2006-03-06 06:00:45 +00:00
Sam Lantinga
e7a772f10b Added ARM and SH4 detection for WinCE development environment 2006-03-06 01:34:36 +00:00
Sam Lantinga
a2df95ca1b *** empty log message *** 2006-03-05 22:18:15 +00:00
Sam Lantinga
223544e90d Updated WinCE support by Dmitry (with some tweaks)
Converted the disk audio driver to SDL_RWops for portability
2006-03-04 08:24:35 +00:00
Sam Lantinga
f496c3b272 Updated for Dreamcast KOS June 2005 snapshot:
http://cadcdev.sourceforge.net/svn/snapshots/
http://gamedev.allusion.net/softprj/kos/dcsetup.php
2006-03-02 13:16:02 +00:00