Commit graph

2900 commits

Author SHA1 Message Date
Mike Gorchak
d54f916cc3 Continue working on 2D support in Photon.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404058
2009-10-12 08:21:43 +00:00
Mike Gorchak
e2e843a389 Continue working on 2D support in Photon
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404055
2009-10-11 18:45:39 +00:00
Sam Lantinga
c1665b6a55 A better solution to making the default build optimization -O3
Cygwin32 autoconf complains about c.m4 ... of course. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404054
2009-10-11 10:38:38 +00:00
Sam Lantinga
88141c3407 Whoops, the ProjectDir is one level lower than the SolutionDir
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404053
2009-10-11 10:30:47 +00:00
Sam Lantinga
ad98374d82 stefanullinger to me
I updated and wanted to compile SDL, but it does not work.
The reason is the new pre-build step.

Currently it says:

"if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY
echo Copying SDL_config_win32.h to SDL_config.h...
copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h
:SDLCONFIGOKAY

if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY
echo Creating stub SDL_revision.h file...
echo #define SDL_REVISION 0 >$(SolutionDir)\..\include\SDL_revision.h
:SDLREVISIONOKAY"


So ... the problem with this lines is, that they lookup the SolutionDir...
I think it should use the ProjectDir here!
I - for example - want to use SDL within my engine...
So my engine is the solutionDir...not SDL...SDL is just a sub-project.

I think you should change this, shouldn't you?!

Regards,
Stefan

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404052
2009-10-11 10:22:22 +00:00
Sam Lantinga
c7ec745959 pkg-config replaced sdl-config in these cases.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404051
2009-10-11 07:12:24 +00:00
Sam Lantinga
fd8af66fe2 Fixed bug #31
Set the default optimization level to -O3

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404050
2009-10-11 06:44:50 +00:00
Sam Lantinga
39b386f90a gcc can't generate dependencies for a file that doesn't exist, so first create SDL_revision.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404049
2009-10-11 06:42:20 +00:00
Sam Lantinga
10a4894433 This is crazy. In order to override the default optimization for GCC,
we actually have to include the core autoconf C compiler macro suite.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404048
2009-10-11 06:33:34 +00:00
Mike Gorchak
5303617926 Continue working on 2D support for Photon/QNX.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404047
2009-10-10 20:15:20 +00:00
Sam Lantinga
345698f187 Matěj Týč 2009-10-05 14:09:03 PDT
patched to comply to the up-to-date autoconf

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404046
2009-10-10 18:37:35 +00:00
Mike Gorchak
5095178f48 Revert back. Sorry.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404045
2009-10-10 17:07:49 +00:00
Mike Gorchak
67242517ca Added phrender library linkage for QNX target.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404044
2009-10-10 15:22:16 +00:00
Mike Gorchak
f050f1289b Call CommonQuit() at exit has been added.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404040
2009-10-10 13:22:05 +00:00
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 #833
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 #627
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 #830
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 #830
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 #813 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 #828
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 #499
--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 #826
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 #522
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 #817
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 #814
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