Commit Graph

2845 Commits

Author SHA1 Message Date
Sam Lantinga
298c9c2ac3 Added missing templates 2009-09-29 07:59:23 +00:00
Sam Lantinga
f301f1f1f9 Reminder to investigate upgrading libtool to fix bug #499 2009-09-29 06:33:33 +00:00
Sam Lantinga
c2a31c3fec Better cross-platform macros for printing 32 and 64 bit values 2009-09-29 01:19:14 +00:00
Sam Lantinga
676f56294f Temporary band-aid for bug #575
It looks like newer kernels do the logical device mapping in the driver,
so this code crashes.  I don't have one of these nor do I have remote
access to debug this, so I'm disabling the logical mapping for now.
2009-09-29 00:42:21 +00:00
Bob Pendleton
821a7b0630 Ok, added long casts to get rid of compiler warnings. 2009-09-28 18:44:26 +00:00
Sam Lantinga
8532c67014 -0.5 is causing trouble according to comments in bug #783 2009-09-28 15:32:58 +00:00
Sam Lantinga
244f6a3ccf Added renderer information for dynamic OpenGL test 2009-09-28 15:32:19 +00:00
Sam Lantinga
2415433b1c Fixed bug #716
Armin Burgmeier      2009-03-15 04:35:45 PDT

When I hold a mouse button down on another (non-SDL) window, then move the
mouse over an SDL window and releasing the mouse button there, then the
application does not receive an SDL_ACTIVEEVENT with state SDL_APPMOUSEFOCUS
and gain 1.

Furthermore, SDL_GetAppState() reports the application not having mouse focus
until moving the mouse out of the window and back in again.
2009-09-27 23:24:58 +00:00
Sam Lantinga
f8c7e7df22 Fixed 32-bit build 2009-09-26 21:39:56 +00:00
Sam Lantinga
9134eb02ab Fixed bug #797
Ryan C. Gordon      2009-09-19 08:25:21 PDT

This line in SDL_iconv_string (src/stdlib/SDL_iconv.c) ...

        if (!fromcode || !*fromcode) {
            tocode = "UTF-8";
        }

Is probably supposed to assign to "fromcode" and not "tocode".
2009-09-26 10:36:55 +00:00
Sam Lantinga
bd908a682f Fixed bug #777
Implemented SDL_GetPlatform()
2009-09-26 10:32:14 +00:00
Sam Lantinga
497088d257 Fixed bug #766
Mason Wheeler      2009-07-06 14:29:47 PDT

This adds some missing error reporting for SDL_SelectRenderer, and cleans up the logic a little bit.
2009-09-26 10:22:35 +00:00
Sam Lantinga
9b2bca8c06 Fixed bug #765
Added SDL_SetError case for SDL_UNSUPPORTED
2009-09-26 10:19:19 +00:00
Sam Lantinga
d9b39c9a69 Fixed bug #764
Added better error checking from Mason Wheeler
2009-09-26 10:17:49 +00:00
Sam Lantinga
38c3f80d5f Fixed bug #761
Mason Wheeler      2009-07-05 09:28:33 PDT

This patch fixes two issues with SDL_CreateTextureFromSurface.

1.  If no renderer is available, the function will return 0 without calling
SDL_SetError. (It does this in other places as well, but it appears that in
these cases, SDL_SetError was already called by a previous function call.)
2.  Removal of a dead code block that checks for an impossible return value.
2009-09-26 10:13:44 +00:00
Sam Lantinga
8c5ed7b905 Fixed bug #734
Nicholas Phillips      2009-04-26 21:34:05 PDT

I am using x64 Linux (using Intel Core 2 DUO), and I have noticed that there is
an error in SDL_cpuinfo.c, function CPU_getCPUIDFeaturesExt for my platform.
2009-09-26 10:04:38 +00:00
Sam Lantinga
f0bf2e399c Fixed bug #705
Sami N      2009-02-21 11:15:39 PST

Patches two tests that had broken format strings in their *printf()'s.
2009-09-26 09:57:32 +00:00
Sam Lantinga
731c5d1558 Fixed bug #705
Sami N      2009-02-21 11:15:39 PST

Patches two tests that had broken format strings in their *printf()'s.
2009-09-26 09:56:26 +00:00
Sam Lantinga
bb5315dc28 Fixed bug #704
Dennis      2009-02-20 15:36:49 PST

When trying to run a parallel build, gcc will not be able to find SDL_revision.h
2009-09-26 09:44:52 +00:00
Sam Lantinga
453bd99553 Fixed crash with right side up BMP files 2009-09-26 06:21:36 +00:00
Sam Lantinga
0a5805f8f2 Eric Wing to Sam
I refactored how the shell script code-gen phases were setup in the Xcode project.
I also removed the SDLmain files from the project templates.
2009-09-26 03:58:35 +00:00
Bob Pendleton
f84f69d047 fixed a spelling error in the documentation. 2009-09-25 19:26:21 +00:00
Bob Pendleton
0975b60bea Changed to include SDL_atomic.c in the windows version of SDL 1.3 2009-09-25 19:20:25 +00:00
Bob Pendleton
7a2031a379 This version actaully should work on Windows. 2009-09-25 19:17:16 +00:00
Sam Lantinga
12e04a0746 More TODO! 2009-09-24 15:20:11 +00:00
Sam Lantinga
6e5014854d Eric Wing to Sam
Removed the SDLMain lines from the packaging scripts.
2009-09-24 14:43:03 +00:00
Sam Lantinga
69732bedfa Updated Xcode project from Eric Wing 2009-09-24 07:13:02 +00:00
Sam Lantinga
8e720afb8f Getting ready for a new Xcode project from Eric Wing 2009-09-24 07:12:05 +00:00
Sam Lantinga
0390b75f53 Fixed bug #732
If no -L is present in the library spec, try /usr/lib
2009-09-23 07:10:45 +00:00
Sam Lantinga
1764e75bcc Possibly fixed bug #601, definitely fixed a potential issue with threads
stopping and starting in rapid succession.
2009-09-23 06:37:27 +00:00
Bob Pendleton
14a51aa4c4 int testmmousetable.c the arguments to main() are not compatible with what is required in SDL_main.h
Cleaned up testatomic.c to use the same syntax as every other test program.
2009-09-23 02:52:11 +00:00
Sam Lantinga
08761c33de Whoops, this breaks building on Mac OS X 10.4 2009-09-22 02:20:56 +00:00
Bob Pendleton
10e2dbb79d oops 2009-09-21 22:25:14 +00:00
Bob Pendleton
ccf0c93d64 Should now compile on 32 bit linux and 64 bit linux 2009-09-21 22:23:41 +00:00
Sam Lantinga
c3a7520d8d Whoops, need both the header and the library! 2009-09-21 11:31:28 +00:00
Sam Lantinga
9d68c389ed Fixed bug #714
fuzzyTew@gmail.com      2009-03-14 15:18:45 PDT

patch to change HAVE_ICONV to HAVE_ICONV_H

There are two separate iconv checks in configure -- one for the header file and
one for the library.  include/SDL_stdinc.h uses the library define to see
whether or not it should reference the types defined in the header, which
naturally breaks if the library exists and the header does not.
2009-09-21 11:04:01 +00:00
Sam Lantinga
4fb13ccee8 Fixed bug #674
Matej     2009-01-08 09:25:34 PST

Hello,
I maintain a cross-platform project that uses SDL.
One of the users who runs OSX has told me that he has problems with linking to
SDL due to missing -framework option.
I think that the problem is because of this:
'sdl-config --libs' outputs '-L/opt/local/lib -lSDLmain -lSDL
-Wl,-framework,Cocoa'
All the options are passed to the linker except the last one. I think that the
good output should be just:
'-L/opt/local/lib -lSDLmain -lSDL -framework Cocoa'
since those options (--libs) are passed to the linker, so the '-Wl' option is
redundant and possibly harmful in this very case
I use autotools with libtool to do the build...
Regards,
Matej
2009-09-21 10:23:19 +00:00
Sam Lantinga
a1ee906546 Fixed bug #615
Scott McCreary      2008-08-21 10:48:14 PDT

This patch adds support for Haiku.
http://ports.haiku-files.org/browser/haikuports/trunk/media-libs/libsdl/SDL-1.2.13-haiku.diff
Haiku is an open-source recreation of BeOS.  It has better POSIX compliance
than beOS did, and other improved features, which in some cases causes us to
have to "undo" previous BeOS workarounds.
Here's our port log entry for it, showing the steps to force the changes into
configure and Makefile:
http://ports.haiku-files.org/wiki/media-libs/libsdl/1.2.13/1
Note that this was only tried on 1.2.13 stable so far.
Haiku is using a newer config.guess / config.sub that doesn't yet seem to be in
the released libtool, so we are having to copy it in for now.
http://haiku-files.org/files/optional-packages/
2009-09-21 09:21:00 +00:00
Sam Lantinga
542622dc4a Added reminder to look into 2D vblank synchronization 2009-09-21 09:16:35 +00:00
Sam Lantinga
4f9b38f7c8 Oh yeah, we have GLX support too. 2009-09-21 09:02:05 +00:00
Sam Lantinga
8a966799e8 Fixed bug #577
Pierre Phaneuf      2008-05-01 10:29:16 PDT

SDL_VIDEO_DRIVER_X11 is not defined in SDL_config_macosx.h

There's a number of SDL_VIDEO_DRIVER_xxx defined in SDL_config_macosx.h, but
not that one, even though it is actually present.
2009-09-21 08:40:04 +00:00
Sam Lantinga
9f4b13f2ad Fixed bug #591
Wade Berrier      2008-05-28 11:09:42 PDT

configure.in will enable dynamic loading by default for modules, but some of
the checks only check /lib, /usr/lib, /usr/local/lib, etc...

It needs to also account for systems using /lib64, /usr/lib64, and
/usr/local/lib64.

For example, openSUSE x86_64 distro uses these style paths.  Otherwise, i586
gets dynamically loaded, but x86_64 doesn't.
2009-09-21 08:31:02 +00:00
Sam Lantinga
6215039632 Fixed bug #570
SDL_SemWaitTimeout in src/thread/generic/SDL_syssem.c line 179 (SVN trunk):

--sem->count;

should be

if (retval == 0) {
    --sem->count;
}

Without this, sem->count will underflow on timeout effectively breaking the
semaphore. It appears that the implementation has been wrong since the initial
revision.
2009-09-21 07:35:06 +00:00
Sam Lantinga
7b286700e7 Fixed build on Mac OS X 10.4 2009-09-21 05:24:54 +00:00
Sam Lantinga
8ced47d33f Fall back to opaque sprite if no formats with alpha are supported. 2009-09-20 23:09:30 +00:00
Sam Lantinga
2bf654253f Fixed compatibility with SDL 1.2 pixel format (24 bits per pixel of color data with 4 bytes per pixel == 32 bpp) 2009-09-20 22:47:28 +00:00
Sam Lantinga
2d97efbd4d Removed outdated Atari support 2009-09-20 04:15:19 +00:00
Sam Lantinga
47ac2f57c8 Oh yeah, need this option for PPC as well now. 2009-09-20 04:13:23 +00:00
Bob Pendleton
0d9cd7636c I'm gussing that this was never compiled where TTF support was missing. As a result a call to SDL_GetError and a call to TTF_GetError were swapped.
I "fixed" it. That is it now compiles.
2009-09-19 15:22:33 +00:00
Sam Lantinga
95c8f7a517 Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009 2009-09-19 13:29:40 +00:00