Sun, 04 Oct 2009 18:09:12 +0000Fixed bug #522
Sam Lantinga [Sun, 04 Oct 2009 18:09:12 +0000] rev 3340
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.

Sun, 04 Oct 2009 16:26:34 +0000Eric Wing to Sam
Sam Lantinga [Sun, 04 Oct 2009 16:26:34 +0000] rev 3339
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.)

Sun, 04 Oct 2009 09:55:20 +0000Fixed bug #817
Sam Lantinga [Sun, 04 Oct 2009 09:55:20 +0000] rev 3338
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

Sun, 04 Oct 2009 09:51:04 +0000Fixed bug #814
Sam Lantinga [Sun, 04 Oct 2009 09:51:04 +0000] rev 3337
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

Sun, 04 Oct 2009 09:18:48 +0000Fixed a bug where when the audio starts paused all the DirectSound buffers
Sam Lantinga [Sun, 04 Oct 2009 09:18:48 +0000] rev 3336
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. :)

Sun, 04 Oct 2009 04:03:37 +0000Adam Strzelecki to SDL
Sam Lantinga [Sun, 04 Oct 2009 04:03:37 +0000] rev 3335
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

Sun, 04 Oct 2009 03:38:01 +0000Use gcc's built-in dependency generation, thanks to Adam Strzelecki
Sam Lantinga [Sun, 04 Oct 2009 03:38:01 +0000] rev 3334
Use gcc's built-in dependency generation, thanks to Adam Strzelecki

Sat, 03 Oct 2009 16:23:16 +0000[SDL] Bad math in SDL_RenderCopy
Sam Lantinga [Sat, 03 Oct 2009 16:23:16 +0000] rev 3333
[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;

Fri, 02 Oct 2009 13:50:36 +0000You should check for the C compiler before you set CFLAGS. :)
Sam Lantinga [Fri, 02 Oct 2009 13:50:36 +0000] rev 3332
You should check for the C compiler before you set CFLAGS. :)

Thu, 01 Oct 2009 15:30:26 +0000Eric Wing to Sam
Sam Lantinga [Thu, 01 Oct 2009 15:30:26 +0000] rev 3331
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.