1
0
mirror of https://github.com/joel16/SDL2.git synced 2025-03-01 08:06:00 +00:00

2886 Commits

Author SHA1 Message Date
Mike Gorchak
ae04b1afaf Created windows must be destroyed at CommonQuit().
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404039
2009-10-10 13:21:21 +00:00
Sam Lantinga
5575687744 Debian patch: 218_joystick_memmove.diff
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404032
2009-10-10 10:02:17 +00:00
Sam Lantinga
89229aae60 Fixed bug
Fixed errors with older autoconf

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404028
2009-10-10 09:58:24 +00:00
Sam Lantinga
a1d457ae81 Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404027
2009-10-10 09:44:04 +00:00
Sam Lantinga
abf5cb8c2f Adapted from Debian patch: 215_kfreebsd_gnu.diff
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404023
2009-10-10 09:36:12 +00:00
Sam Lantinga
7075c8391a Made typedef for SDL_bool the same as the other typedefs.
If this causes problems on any compiler, please report a bug to
http://bugzilla.libsdl.org/
and include the platform and version of compiler you're using.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404021
2009-10-10 09:22:20 +00:00
Mike Gorchak
9a25579e5f Support for the atomic operations for ARM, PPC, MIPS, SH, X86 platforms has been added.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404010
2009-10-10 08:06:18 +00:00
Sam Lantinga
7e6cba931b Fixed bug
Increased accuracy of alpha blend calculation

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404009
2009-10-10 07:48:57 +00:00
Ryan C. Gordon
885758b318 Merged r4990:4991 from branches/SDL-1.2: ALSA 1.0 API and dlvsym() removal.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404007
2009-10-10 07:34:15 +00:00
Sam Lantinga
2e3beaf83d typo
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404004
2009-10-10 06:51:42 +00:00
Ryan C. Gordon
fa8e2f2155 Use new 1.3 API for getting audio driver name.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404003
2009-10-10 06:39:59 +00:00
Ryan C. Gordon
edf88f55b0 Added some debug output to loopwave.c
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404001
2009-10-10 06:32:11 +00:00
Sam Lantinga
e1d8dd9b8a Use test instead of [ because that's an m4 quote character
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404000
2009-10-10 05:27:59 +00:00
Sam Lantinga
4b40e7c5a6 Fixed bug
Added pre-build step to generate required headers

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403995
2009-10-08 09:37:58 +00:00
Sam Lantinga
a6c38ff9a2 Fixed bug
Added pre-build step to generate required headers

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403994
2009-10-08 09:32:07 +00:00
Ryan C. Gordon
280581a676 Merged r4974:4975 from branches/SDL-1.2: sdl.pc removal on make uninstall.
Fixes Bugzilla  for the 1.3 branch.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403993
2009-10-08 09:14:31 +00:00
Sam Lantinga
952edb3958 Fixed bug
Added support for --disable-dependency-tracking to configure.in

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403992
2009-10-08 09:07:58 +00:00
Sam Lantinga
7647b00bd8 Update config.guess and config.sub
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403987
2009-10-08 07:08:45 +00:00
Sam Lantinga
c110578902 The SDL 1.3 documentation will be primarily online wiki based:
http://wiki.libsdl.org/

Please contact Lauren MacDonell laleh_aziz cox.net who is coordinating it.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403986
2009-10-07 14:29:59 +00:00
Sam Lantinga
15b77c1e55 SuSE 11.1 installs directfb-config without directfb-devel, so check to
make sure the development headers are actually available!

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403983
2009-10-07 06:11:53 +00:00
Sam Lantinga
e853355574 Reminder, add multiple icon sizes!
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403980
2009-10-07 04:32:04 +00:00
Sam Lantinga
d15deca4df Upgrading libtool didn't fix bug
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403979
2009-10-07 04:31:45 +00:00
Sam Lantinga
1d0273bd6e Eric Wing to Sam
Also noticed the SDL.h header in 1.3 didn't have the /** for the methods while testing. Attached is a quick fix patch.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403978
2009-10-06 03:34:10 +00:00
Sam Lantinga
771e6a4d5e Eric Wing to Sam
Sorry, here's another small fix.
I changed two options in the Doxyfiles in the XcodeDocSet directories which should allow at least a brief description to be seen in Quick Help.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403977
2009-10-06 03:33:10 +00:00
Sam Lantinga
9d74df9496 Updated libtool to version 2.2.6a
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403974
2009-10-04 22:21:17 +00:00
Sam Lantinga
1932964202 Split out ltoptions.m4
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403973
2009-10-04 21:00:33 +00:00
Sam Lantinga
92b0199110 Fixed make dist
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403972
2009-10-04 20:46:33 +00:00
Sam Lantinga
323e84e652 Fixed make dist
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403971
2009-10-04 20:45:59 +00:00
Sam Lantinga
79a1a3cee0 Split acinclude.m4 into its constituent parts for easy upgrading
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403969
2009-10-04 20:44:04 +00:00
Sam Lantinga
e66e17ea31 Fixed bug
Ken Bull      2009-10-04 09:51:30 PDT

2009/10/4 E. Wing <ewmailing@gmail.com>:
> Hi Kenneth,
> I noticed that SDL_SetColorKey and SDL_GetColorKey start with
> /*
> instead of
> /**
> in SDL_Surface.h in SDL 1.3.
>
> I haven't scrutinized the headers and I don't know if you had an
> automated process to add these, but I thought I would let you know in
> case there might be others that have the same problem.
>
> Thanks,
> Eric
>

The attached patch corrects this and other documentation errors in
SDL_surface.h

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403966
2009-10-04 19:14:30 +00:00
Sam Lantinga
b8e0d8078e Fixed bug
Mike Frysinger      2007-12-10 16:47:36 PST

it's much easier to manage .pc files for cross-compiling setups than it is for
random *-config scripts ... the cross-compiled pkg-config files can all be
easily/tightly controlled and separate from the host pkg-config files.  the
*-config files however are to be found in $PATH and can easily pick the wrong
one.

can we get the sdl.m4 macro updated so that it checks for libsdl.pc first via
the standard PKG_CHECK_MODULES() m4 macro, and if that fails, fall back to the
normal sdl-config voodoo.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403965
2009-10-04 18:09:12 +00:00
Sam Lantinga
3fcfb40e22 Eric Wing to Sam
Included is the fix for the missing SDL_revision.h in the framework.

Also, I include the project template fixes for the prefix header files. But since this is in SVN directly, you must rename the files named
SDLApp_Prefix.pch
to
___PROJECTNAMEASIDENTIFIER____Prefix.pch

in the TemplatesForXcodeSnowLeopard and TemplatesForXcodeLeopard directories. (Do not rename the Tiger ones.)

--HG--
rename : Xcode/TemplatesForXcodeLeopard/SDL Application/SDLApp_Prefix.pch => Xcode/TemplatesForXcodeLeopard/SDL Application/___PROJECTNAMEASIDENTIFIER____Prefix.pch
rename : Xcode/TemplatesForXcodeLeopard/SDL Cocoa Application/SDLApp_Prefix.pch => Xcode/TemplatesForXcodeLeopard/SDL Cocoa Application/___PROJECTNAMEASIDENTIFIER____Prefix.pch
rename : Xcode/TemplatesForXcodeLeopard/SDL OpenGL Application/SDLApp_Prefix.pch => Xcode/TemplatesForXcodeLeopard/SDL OpenGL Application/___PROJECTNAMEASIDENTIFIER____Prefix.pch
rename : Xcode/TemplatesForXcodeSnowLeopard/SDL Application/SDLApp_Prefix.pch => Xcode/TemplatesForXcodeSnowLeopard/SDL Application/___PROJECTNAMEASIDENTIFIER____Prefix.pch
rename : Xcode/TemplatesForXcodeSnowLeopard/SDL Cocoa Application/SDLApp_Prefix.pch => Xcode/TemplatesForXcodeSnowLeopard/SDL Cocoa Application/___PROJECTNAMEASIDENTIFIER____Prefix.pch
rename : Xcode/TemplatesForXcodeSnowLeopard/SDL OpenGL Application/SDLApp_Prefix.pch => Xcode/TemplatesForXcodeSnowLeopard/SDL OpenGL Application/___PROJECTNAMEASIDENTIFIER____Prefix.pch
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403963
2009-10-04 16:26:34 +00:00
Sam Lantinga
00fcbc745d Fixed bug
Daniele Forghieri      2009-09-30 15:48:24 PDT

Some tests doesn't use the correct include statement (and there are some
missing declaration) and some test use C++ variable after statement, preventing
compile wicth Open Watcom

The patch attached fixes this

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403962
2009-10-04 09:55:20 +00:00
Sam Lantinga
4968cb27ac Fixed bug
Daniele Forghieri      2009-09-30 15:40:53 PDT

To compile the source in libm the variable huge must be renamed, I choose
huge_val

The patch attached change it so it compiles

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403961
2009-10-04 09:51:04 +00:00
Sam Lantinga
4051f91f05 Fixed a bug where when the audio starts paused all the DirectSound buffers
will end up getting locked and never unlocked and sound will never play.

Added a FIXME for Ryan to look at, too. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403960
2009-10-04 09:18:48 +00:00
Sam Lantinga
de0dbff224 Adam Strzelecki to SDL
Since current DirectFB implementation is incomplete for YUV surfaces (actually causes segmentation faults when trying Lock and use YUV planar textures) I decided to fix it a bit.
Here's a patch that should make DirectFB properly support YUV both packed and planar (3 planes).

(1) Removed SDL_BYTESPERPIXEL at all in favor of DFB_BYTES_PER_PIXEL(SDLToDFBPixelFormat(fmt)) which does return always proper BPP for YUVs too, coz SDL_BYTESPERPIXEL returns incorrect values for FOURCCs
(2) Fixed data->pixels allocation for planar YUVs in CreateTexture, it should allocate 150% more space
(3) Copy other planes for planar YUVs in UpdateTexture
(4) Moved checking if format is supported at all with DirectFB on CreateTexture at the beginning of the code

Waiting for comments,
--
Adam Strzelecki | nanoant.com

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403959
2009-10-04 04:03:37 +00:00
Sam Lantinga
361d31ae06 Use gcc's built-in dependency generation, thanks to Adam Strzelecki
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403958
2009-10-04 03:38:01 +00:00
Sam Lantinga
7f26231261 [SDL] Bad math in SDL_RenderCopy
Mason Wheeler to sdl

When I tried to render an image using something other than NULL for srcrect, it got horribly distorted.  I traced it down to the fact that the math in the rectangle adjustments performed just before the call to renderer->RenderCopy is written inside out.  It should look like this:

       if (dstrect->w != real_dstrect.w) {
           int deltax = (dstrect->x - real_dstrect.x);
           int deltaw = (dstrect->w - real_dstrect.w);
           real_srcrect.x += (deltax * real_srcrect.w) / dstrect->w;
           real_srcrect.w += (deltaw * real_srcrect.w) / dstrect->w;
       }
       if (dstrect->h != real_dstrect.h) {
           int deltay = (dstrect->y - real_dstrect.y);
           int deltah = (dstrect->h - real_dstrect.h);
           real_srcrect.y += (deltay * real_srcrect.h) / dstrect->h;
           real_srcrect.h += (deltah * real_srcrect.h) / dstrect->h;

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403957
2009-10-03 16:23:16 +00:00
Sam Lantinga
b330607c4b You should check for the C compiler before you set CFLAGS. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403955
2009-10-02 13:50:36 +00:00
Sam Lantinga
7210963bc0 Eric Wing to Sam
Lots of fixes.
Fixed missing power management building.
Added template icons to the project templates.
DocSet stuff
Documentation fixes..

Fixed all the SDLtests. (Lots of tedious work.) It now depends on the static library target for convenience so I am not going to remove it from the SDL xcode project.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403952
2009-10-01 15:30:26 +00:00
Sam Lantinga
64da4d2ac8 Getting ready for a new drop from Eric, hopefully the last time I have to wipe this.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403951
2009-10-01 15:26:39 +00:00
Sam Lantinga
9cf9fe1010 Added missing templates
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403942
2009-09-29 07:59:23 +00:00
Sam Lantinga
68b5d835c3 Reminder to investigate upgrading libtool to fix bug
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403941
2009-09-29 06:33:33 +00:00
Sam Lantinga
ff4d85fc9e Better cross-platform macros for printing 32 and 64 bit values
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403938
2009-09-29 01:19:14 +00:00
Sam Lantinga
efc7893227 Temporary band-aid for bug
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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403937
2009-09-29 00:42:21 +00:00
Bob Pendleton
6e7a184bcf Ok, added long casts to get rid of compiler warnings.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403935
2009-09-28 18:44:26 +00:00
Sam Lantinga
eb162e1725 -0.5 is causing trouble according to comments in bug
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403932
2009-09-28 15:32:58 +00:00
Sam Lantinga
06e83a3640 Added renderer information for dynamic OpenGL test
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403931
2009-09-28 15:32:19 +00:00
Sam Lantinga
8349cf0831 Fixed bug
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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403927
2009-09-27 23:24:58 +00:00
Sam Lantinga
bb9b983417 Fixed 32-bit build
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403916
2009-09-26 21:39:56 +00:00