1. 04 Oct, 2009 10 commits
    • Sam Lantinga's avatar
      Fixed make dist · 323e84e6
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403971
      323e84e6
    • Sam Lantinga's avatar
      Split acinclude.m4 into its constituent parts for easy upgrading · 79a1a3ce
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403969
      79a1a3ce
    • Sam Lantinga's avatar
      Fixed bug #826 · e66e17ea
      Sam Lantinga authored
       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
      e66e17ea
    • Sam Lantinga's avatar
      Fixed bug #522 · b8e0d807
      Sam Lantinga authored
       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
      b8e0d807
    • Sam Lantinga's avatar
      Eric Wing to Sam · 3fcfb40e
      Sam Lantinga authored
      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
      3fcfb40e
    • Sam Lantinga's avatar
      Fixed bug #817 · 00fcbc74
      Sam Lantinga authored
       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
      00fcbc74
    • Sam Lantinga's avatar
      Fixed bug #814 · 4968cb27
      Sam Lantinga authored
       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
      4968cb27
    • Sam Lantinga's avatar
      Fixed a bug where when the audio starts paused all the DirectSound buffers · 4051f91f
      Sam Lantinga authored
      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
      4051f91f
    • Sam Lantinga's avatar
      Adam Strzelecki to SDL · de0dbff2
      Sam Lantinga authored
      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
      de0dbff2
    • Sam Lantinga's avatar
      Use gcc's built-in dependency generation, thanks to Adam Strzelecki · 361d31ae
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403958
      361d31ae
  2. 03 Oct, 2009 1 commit
    • Sam Lantinga's avatar
      [SDL] Bad math in SDL_RenderCopy · 7f262312
      Sam Lantinga authored
      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
      7f262312
  3. 02 Oct, 2009 1 commit
  4. 01 Oct, 2009 2 commits
    • Sam Lantinga's avatar
      Eric Wing to Sam · 7210963b
      Sam Lantinga authored
      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
      7210963b
    • Sam Lantinga's avatar
      Getting ready for a new drop from Eric, hopefully the last time I have to wipe this. · 64da4d2a
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403951
      64da4d2a
  5. 29 Sep, 2009 4 commits
  6. 28 Sep, 2009 3 commits
  7. 27 Sep, 2009 1 commit
    • Sam Lantinga's avatar
      Fixed bug #716 · 8349cf08
      Sam Lantinga authored
       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
      8349cf08
  8. 26 Sep, 2009 13 commits
    • Sam Lantinga's avatar
      Fixed 32-bit build · bb9b9834
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403916
      bb9b9834
    • Sam Lantinga's avatar
      Fixed bug #797 · bda0828e
      Sam Lantinga authored
       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".
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403912
      bda0828e
    • Sam Lantinga's avatar
      Fixed bug #777 · a305eb85
      Sam Lantinga authored
      Implemented SDL_GetPlatform()
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403911
      a305eb85
    • Sam Lantinga's avatar
      Fixed bug #766 · 1035ec66
      Sam Lantinga authored
       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.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403910
      1035ec66
    • Sam Lantinga's avatar
      Fixed bug #765 · 0990e225
      Sam Lantinga authored
      Added SDL_SetError case for SDL_UNSUPPORTED
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403909
      0990e225
    • Sam Lantinga's avatar
      Fixed bug #764 · ac573d85
      Sam Lantinga authored
      Added better error checking from Mason Wheeler
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403908
      ac573d85
    • Sam Lantinga's avatar
      Fixed bug #761 · ba8fff9a
      Sam Lantinga authored
       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.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403907
      ba8fff9a
    • Sam Lantinga's avatar
      Fixed bug #734 · b42df3ec
      Sam Lantinga authored
       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.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403905
      b42df3ec
    • Sam Lantinga's avatar
      Fixed bug #705 · 55214000
      Sam Lantinga authored
       Sami N      2009-02-21 11:15:39 PST
      
      Patches two tests that had broken format strings in their *printf()'s.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403904
      55214000
    • Sam Lantinga's avatar
      Fixed bug #705 · b827e929
      Sam Lantinga authored
       Sami N      2009-02-21 11:15:39 PST
      
      Patches two tests that had broken format strings in their *printf()'s.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403903
      b827e929
    • Sam Lantinga's avatar
      Fixed bug #704 · 3a86a4e6
      Sam Lantinga authored
       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
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403902
      3a86a4e6
    • Sam Lantinga's avatar
      Fixed crash with right side up BMP files · 940b0ede
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403901
      940b0ede
    • Sam Lantinga's avatar
      Eric Wing to Sam · 910fc5ed
      Sam Lantinga authored
      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.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403899
      910fc5ed
  9. 25 Sep, 2009 3 commits
  10. 24 Sep, 2009 2 commits
    • Sam Lantinga's avatar
      More TODO! · 9705e19c
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403895
      9705e19c
    • Sam Lantinga's avatar
      Eric Wing to Sam · 353fa3e1
      Sam Lantinga authored
      Removed the SDLMain lines from the packaging scripts.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403894
      353fa3e1