Commit Graph

2922 Commits

Author SHA1 Message Date
Sam Lantinga
8ea99c7b4e There's a bug with gcc 4.4.1 and -O2 where srcp doesn't get the correct value after the first scanline. Ugh. 2009-10-18 23:21:15 +00:00
Sam Lantinga
890a3b9f25 Merged improvements to SDL_SoftStretch() from SDL 1.2 2009-10-18 17:49:40 +00:00
Sam Lantinga
baf302ec39 Fixed bug #853
Ludwig Nussel      2009-10-18 05:34:18 PDT

src/joystick/linux/SDL_sysjoystick.c has some problems:

- test_bit() might break with strict aliasing
- test_bit() assumes array is Uint32 but its actually "unsigned long"
  on 64bit systems sizeof(long) != sizeof(Uint32).
- the keybit array is too small
- the arrays are unitialized so the number of
  detected buttons is quite random
2009-10-18 16:14:35 +00:00
Sam Lantinga
fc787a45f4 Whoops, need " inside quotes 2009-10-17 23:29:52 +00:00
Sam Lantinga
aaa2d5a649 Fixed bug #852
Jesse Anders      2009-10-17 14:17:25 PDT

In VC++, the build script that creates SDL_config.h and SDL_revision.h fails
when the project directory path includes spaces. For example, if the project
directory path is:

c:\Documents and Settings\Jesse\My Documents\Visual Studio 2008\Projects\SDL
1.3\VisualC\SDL\

The following error is generated:

'and' is not recognized as an internal or external command

Placing all paths in quotes fixes this.
2009-10-17 21:46:08 +00:00
Sam Lantinga
7f12cb6568 iPhone/Xcode for 1.3
Eric Wing to Sam

Here's another patch for Xcode-iPhone for 1.3.
This has been sitting for awhile too, so you may want to test.
Contains mostly small changes, but tries to unify how I do some of the script stages with the Mac version.
2009-10-17 07:38:14 +00:00
Sam Lantinga
0874c3ae84 iPhone interruption patch / SDL 1.3
Eric Wing to Sam

I've been sitting on this too long. I need to push.
It's untested because of the unrelated crashing bug I've been experiencing.
Also have a fix for SIZEOF_VOIDP in the config for both iPhone and Mac.
2009-10-17 07:36:45 +00:00
Mike Gorchak
5d837d169e Working on fullscreen video modes support 2009-10-13 20:17:11 +00:00
Mike Gorchak
b77e19d366 Fixed memory allocation size. 2009-10-13 20:16:23 +00:00
Mike Gorchak
aa0ea9891e Fixed handling of the initial window size. 2009-10-13 18:14:22 +00:00
Mike Gorchak
b098c35b96 All 2D operations in Photon driver have been finished. The driver is ready to use. There fullscreen modes and YUV textures are rest only. 2009-10-13 11:26:40 +00:00
Mike Gorchak
aafbae15c5 Options --double --triple have been added to test double and triple buffering. 2009-10-13 11:24:36 +00:00
Sam Lantinga
473fff5cb6 We don't need dlvsym() for ALSA anymore, yay! 2009-10-13 07:02:19 +00:00
Mike Gorchak
8d81134bc6 Fixed SDL_BLENDMODE_MASK for GL and GLES renderers, now blending works like in software renderer. 2009-10-13 06:51:20 +00:00
Sam Lantinga
7741197976 Only show the dynamic audio libraries if we'll be dynamically loading them
Fixed DirectFB dynamic loading to use find_lib
Converted tabs to spaces
2009-10-13 06:49:29 +00:00
Sam Lantinga
f89b665916 Simplify and improve dynamic library detection, taken from SDL_image 2009-10-13 06:40:08 +00:00
Sam Lantinga
aa7be193a5 Debian patch: 050_altivec_detection.diff 2009-10-13 06:33:46 +00:00
Mike Gorchak
04dc33353c Fixed OpenGL ES primitive alpha blending. 2009-10-13 06:28:31 +00:00
Sam Lantinga
7a582a2004 Missed converting PULSE to PULSEAUDIO 2009-10-13 05:30:29 +00:00
Mike Gorchak
8554a00051 Initial support for fullscreen application modes. 2009-10-12 19:47:01 +00:00
Mike Gorchak
6bf136c551 Photon SDL renderer almost finished, the double/tripple buffering is left only. 2009-10-12 11:45:01 +00:00
Sam Lantinga
46d753c1c0 Joystick patch from FreeBSD ports system 2009-10-12 09:42:50 +00:00
Mike Gorchak
efaf0e3ff1 Continue working on 2D support in Photon. 2009-10-12 08:21:43 +00:00
Mike Gorchak
db200ea8ad Continue working on 2D support in Photon 2009-10-11 18:45:39 +00:00
Sam Lantinga
a3edbfcc4f A better solution to making the default build optimization -O3
Cygwin32 autoconf complains about c.m4 ... of course. :)
2009-10-11 10:38:38 +00:00
Sam Lantinga
acbb4b1668 Whoops, the ProjectDir is one level lower than the SolutionDir 2009-10-11 10:30:47 +00:00
Sam Lantinga
1ac23708d4 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
2009-10-11 10:22:22 +00:00
Sam Lantinga
7f96993d52 pkg-config replaced sdl-config in these cases. 2009-10-11 07:12:24 +00:00
Sam Lantinga
e0de9cb1dc Fixed bug #31
Set the default optimization level to -O3
2009-10-11 06:44:50 +00:00
Sam Lantinga
6bd4c6aa77 gcc can't generate dependencies for a file that doesn't exist, so first create SDL_revision.h 2009-10-11 06:42:20 +00:00
Sam Lantinga
a58f375b9d This is crazy. In order to override the default optimization for GCC,
we actually have to include the core autoconf C compiler macro suite.
2009-10-11 06:33:34 +00:00
Mike Gorchak
45dab6140e Continue working on 2D support for Photon/QNX. 2009-10-10 20:15:20 +00:00
Sam Lantinga
8cdbbc931c Matěj Týč 2009-10-05 14:09:03 PDT
patched to comply to the up-to-date autoconf
2009-10-10 18:37:35 +00:00
Mike Gorchak
696387e501 Revert back. Sorry. 2009-10-10 17:07:49 +00:00
Mike Gorchak
3bc25487ba Added phrender library linkage for QNX target. 2009-10-10 15:22:16 +00:00
Mike Gorchak
0083177b43 Call CommonQuit() at exit has been added. 2009-10-10 13:22:05 +00:00
Mike Gorchak
2b98843157 Created windows must be destroyed at CommonQuit(). 2009-10-10 13:21:21 +00:00
Sam Lantinga
44e7c1bd41 Debian patch: 218_joystick_memmove.diff 2009-10-10 10:02:17 +00:00
Sam Lantinga
8e2baf9026 Fixed bug #833
Fixed errors with older autoconf
2009-10-10 09:58:24 +00:00
Sam Lantinga
f694f1de5e Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version 2009-10-10 09:44:04 +00:00
Sam Lantinga
73b823bca8 Adapted from Debian patch: 215_kfreebsd_gnu.diff 2009-10-10 09:36:12 +00:00
Sam Lantinga
d772434d29 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.
2009-10-10 09:22:20 +00:00
Mike Gorchak
61a236b4a6 Support for the atomic operations for ARM, PPC, MIPS, SH, X86 platforms has been added. 2009-10-10 08:06:18 +00:00
Sam Lantinga
447cbc2563 Fixed bug #627
Increased accuracy of alpha blend calculation
2009-10-10 07:48:57 +00:00
Ryan C. Gordon
3842b74b75 Merged r4990:4991 from branches/SDL-1.2: ALSA 1.0 API and dlvsym() removal. 2009-10-10 07:34:15 +00:00
Sam Lantinga
f81eec596a typo 2009-10-10 06:51:42 +00:00
Ryan C. Gordon
e189bdc695 Use new 1.3 API for getting audio driver name. 2009-10-10 06:39:59 +00:00
Ryan C. Gordon
22051c78fb Added some debug output to loopwave.c 2009-10-10 06:32:11 +00:00
Sam Lantinga
6d525eb2f6 Use test instead of [ because that's an m4 quote character 2009-10-10 05:27:59 +00:00
Sam Lantinga
f0329e3a42 Fixed bug #830
Added pre-build step to generate required headers
2009-10-08 09:37:58 +00:00