1. 28 Apr, 2006 3 commits
    • Sam Lantinga's avatar
      [From Sam] · f573eff4
      Sam Lantinga authored
      > BTW, when setting up parallel make, I usually use # cpus + 1, so a compile is
      > running while disk access is going for another.
      
      [From Ryan]
      My experience is that this works well on Linux, but is actually slower on
      PowerPC Mac OS X...not sure if that's an architecture issue or a scheduler
      issue, though, and haven't tried it on Intel Mac OS X.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401681
      f573eff4
    • Sam Lantinga's avatar
      Future proof C++ code · 7d07e3b4
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401680
      7d07e3b4
    • Sam Lantinga's avatar
      Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs · 4422ede0
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401679
      4422ede0
  2. 27 Apr, 2006 6 commits
    • Ryan C. Gordon's avatar
      fatbuild fixes: · 12d7c190
      Ryan C. Gordon authored
      - A change to define CXX in fatbuild, which comforts the configure script a little, even if we don't use C++ anywhere.
      - Some code to see how many CPU cores exist and parallelize make across them.
      - CFLAGS that apply to both archs are specified seperately (-O3, -pipe, etc)
      - -fvisibility=hidden for the gcc4 builds
      - a "clean", "clean-ppc" and "clean-x86" command
      - Fix to SDL_config_macosx.h for the HAVE_ALLOCA_H thing.
      
      Now builds on an Intel Mac.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401678
      12d7c190
    • Sam Lantinga's avatar
      Fixed bug #101 · 42d0cb5f
      Sam Lantinga authored
      If we lose focus at all, unlock the mouse.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401677
      42d0cb5f
    • Sam Lantinga's avatar
      Trying to fix fatbuild.sh on intel · 592d2604
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401676
      592d2604
    • Sam Lantinga's avatar
      Fixed compile errors on Mac OS X · 5deaddd7
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401673
      5deaddd7
    • Sam Lantinga's avatar
      Implemented bug #5 · 37adc6aa
      Sam Lantinga authored
      Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401672
      37adc6aa
    • Sam Lantinga's avatar
      Implemented bug #2, 117: · b32d3f9c
      Sam Lantinga authored
      Date: Mon, 21 Mar 2005 12:06:14 +0100
      From: Per Inge Mathisen
      Subject: Re: [SDL] Outstanding patches?
      
      The patch adds support for setting SDL_GL_SWAP_CONTROL to Windows and
      X11. In Windows you can also query this enum to check that it is
      working, or see what the default is - such functionality does not
      exist in GLX. For more information on the standards implemented:
      http://oss.sgi.com/projects/ogl-sample/registry/SGI/swap_control.txt
      http://oss.sgi.com/projects/ogl-sample/registry/EXT/wgl_swap_control.txt
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401671
      b32d3f9c
  3. 26 Apr, 2006 2 commits
  4. 22 Apr, 2006 3 commits
  5. 20 Apr, 2006 1 commit
    • Sam Lantinga's avatar
      Date: Thu, 20 Apr 2006 10:13:34 +0200 · 3f4bc2bb
      Sam Lantinga authored
      From: Julien Lecomte
      Subject: [SDL] sdl-config
      
      I've noticed that `sdl-config' usage reports that --static-libs is
      available even when it's not.
      I've modified the 'sdl-config.in' file so that it no longer reports
      '--static-libs' if SDL was compiled with --disable-static.
      I didn't change --disable-shared behavior.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401654
      3f4bc2bb
  6. 19 Apr, 2006 1 commit
    • Sam Lantinga's avatar
      I think this is it... · f893c517
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401653
      f893c517
  7. 17 Apr, 2006 8 commits
    • Sam Lantinga's avatar
      *** empty log message *** · 99861e39
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401652
      99861e39
    • Sam Lantinga's avatar
      Added a note so I remember what the heck I was doing later. :) · 0923d2b9
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401651
      0923d2b9
    • Sam Lantinga's avatar
      More general fix for bug #189 · 04163075
      Sam Lantinga authored
      The clipping is done at a higher level, and the low level functions are
      passed clipped rectangles.  Drivers which don't support source clipping
      have not been changed, so the image will be squished instead of clipped,
      but at least they will no longer crash when the destination rect was out
      of bounds.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401650
      04163075
    • Sam Lantinga's avatar
      Fixed bug #189 · a4f336fa
      Sam Lantinga authored
      Clip the overlay destination rectangle to the screen area on X11
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401649
      a4f336fa
    • Sam Lantinga's avatar
      Fixed bug #197 · fccd61bc
      Sam Lantinga authored
      On servers with the composite extension enabled, visuals with 32-bit depth
      have an alpha mask.  This is pretty neat, but SDL needs a bit more work to
      handle these properly, so for now, we'll just use 24 bit depth visuals.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401648
      fccd61bc
    • Sam Lantinga's avatar
      Use the MAKE variable when available · 8a7b961a
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401647
      8a7b961a
    • Sam Lantinga's avatar
      Whoops, need the actual flags here · 859b58d1
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401646
      859b58d1
    • Sam Lantinga's avatar
      Miscellaneous Mac OS X fixes · 4b9dfeba
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401645
      4b9dfeba
  8. 14 Apr, 2006 5 commits
  9. 13 Apr, 2006 11 commits
    • Sam Lantinga's avatar
      Don't check dlopen on Mac OS X, to retain 10.2 compatibility · a56f3618
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401639
      a56f3618
    • Sam Lantinga's avatar
      Fixed MacOS X and Solaris detection · 50f2cfc3
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401638
      50f2cfc3
    • Sam Lantinga's avatar
      Fixed compile error · 1f2f6191
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401637
      1f2f6191
    • Sam Lantinga's avatar
      Fixed bug #55 · 95686457
      Sam Lantinga authored
      From Christian Walther:
      When writing my patch for #12, I ended up doing all sorts of changes to the way
      application/window activating/deactivating is handled in the Quartz backend,
      resulting in the attached patch. It does make the code a bit cleaner IMHO, but
      as it might be regarded as a case of "if it ain't broken, don't fix it" I'd
      like to hear other people's opinion about it. Please shout if some change
      strikes you as unnecessary or wrong, and I'll explain the reasons behind it. As
      far as I tested it, it does not introduce any new bugs, but I may well have
      missed some.
      
      - The most fundamental change (that triggered most of the others) is irrelevant
      for the usual single-window SDL applications, it only affects the people who
      are crazy enough to display other Cocoa windows alongside the SDL window (I'm
      actually doing this currently, although the additional window only displays
      debugging info and won't be present in the final product): Before, some things
      were done on the application becoming active, some on the window becoming key,
      and some on the window becoming main. Conceptually, all these actions belong to
      the window becoming key, so that's what I implemented. However, since in a
      single-window application these three events always happen together, the
      previous implementation "ain't broken".
      
      - This slightly changed the meaning of the SDL_APPMOUSEFOCUS flag from
      SDL_GetAppState(): Before, it meant "window is main and mouse is inside window
      (or mode is fullscreen)". Now, it means "window is key and mouse is inside
      window (or mode is fullscreen)". It makes more sense to me that way. (See
      http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
      for a discussion of what key and main windows are.) The other two flags are
      unchanged: SDL_APPACTIVE = application is not hidden and window is not
      minimized, SDL_APPINPUTFOCUS = window is key (or mode is fullscreen).
      
      - As a side effect, the reorganization fixes the following two issues (and
      maybe others) (but they could also be fixed in less invasive ways):
      
      * A regression that was introduced in revision 1.42 of SDL_QuartzVideo.m
      (http://libsdl.org/cgi/cvsweb.cgi/SDL12/src/video/quartz/SDL_QuartzVideo.m.diff?r1=1.41&r2=1.42)
      (from half-desirable to undesirable behavior):
      
      Situation: While in windowed mode, hide the cursor using
      SDL_ShowCursor(SDL_DISABLE), move the mouse outside of the window so that the
      cursor becomes visible again, and SDL_SetVideoMode() to a fullscreen mode.
      What happened before revision 1.42: The cursor is visible, but becomes
      invisible as soon as the mouse is moved (half-desirable).
      What happens in revision 1.42 and after (including current CVS): The cursor is
      visible and stays visible (undesirable).
      What happens after my patch: The cursor is invisible from the beginning
      (desirable).
      
      * When the cursor is hidden and grabbed, switch away from the application using
      cmd-tab (which ungrabs and makes the cursor visible), move the cursor outside
      of the SDL window, then cmd-tab back to the application. In 1.2.8 and in the
      current CVS, the cursor is re-grabbed, but it stays visible (immovable in the
      middle of the window). With my patch, the cursor is correctly re-grabbed and
      hidden. (For some reason, it still doesn't work correctly if you switch back to
      the application using the dock instead of cmd-tab. I haven't been able to
      figure out why. I can step over [NSCursor hide] being called in the debugger,
      but it seems to have no effect.)
      
      - The patch includes my patch for #12 (it was easier to obtain using cvs diff
      that way). If you apply both of them, you will end up with 6 duplicate lines in
      SDL_QuartzEvents.m.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401636
      95686457
    • Sam Lantinga's avatar
      Fixed bug #185 · 7a15c646
      Sam Lantinga authored
      The SDL platform header shouldn't dictate the OS target API for other
      applications.  The build system should define the target API for building
      SDL internally.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401635
      7a15c646
    • Sam Lantinga's avatar
      Fixed bug #179 · 458c2abb
      Sam Lantinga authored
      SDL_SemValue() always returns 0. That's because the underlying POSIX
      sem_getvalue() is implemented as a noop in Mac OS X. Apart from that,
      semaphores do work properly (at least according to test/testsem), so I'm not
      sure if this is worth fixing at all.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401634
      458c2abb
    • Sam Lantinga's avatar
      Fixed bug #176 · dfa643c3
      Sam Lantinga authored
      [I'm fixing this for the public headers, but I'm not going to bother for the SDL library code (yet)]
      
      To clarify: Normaly, GCC (or, to be precise, the preprocessor) will ignore
      this, and compile the code happily. However, one can specify -Wundef to get a
      warning about this.
      
      One can probably argue whether to consider this a bug or not; but I think that
      (a) from a semantic point of view, using "#if FOO" when FOO is not defined is
      strange, and (b) since it is possible to trigger a warning about this, and a
      trivial fix exists, it should be corrected.
      
      I can think of two alternative patches, BTW:
      1) Simply use #define HAVE_FOO 0, instead of not defining HAVE_FOO at all
      2) Change
        #if HAVE_FOO
      to
        #if HAVE_FOO+0
      which always does the right thing.
      
      But I think I still prefer the attached patch :-).
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401633
      dfa643c3
    • Sam Lantinga's avatar
      Fixed bug #193 · 678ac924
      Sam Lantinga authored
      The attached patch is mostly cosmetic: Currently, we always add both -framework
      OpenGL and -framework AGL for Mac OS X command line builds.
      
      However, the former is only used for the Cocoa video driver, and the latter
      only for the Carbon video driver (as far as I can tell, at least). Hence the
      attached patch modifies configure.in so that each only gets added to the list
      of frameworks if the corresponding video driver is enabled.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401632
      678ac924
    • Sam Lantinga's avatar
      Fixed bug #192 · 2cfa74d7
      Sam Lantinga authored
      The change made to sdl-config.in on March 18 (rev 11, see
      http://www.libsdl.org/cgi/cvsweb.cgi/SDL12/sdl-config.in), broke static linking
      under Mac OS X for unix style build systems. In other words, "sdl-config
      --static-libs" no longer produces the correct output, as it is missing the
      required -framework switches.
      
      The attached patch fixes this.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401631
      2cfa74d7
    • Sam Lantinga's avatar
      Added a delay so the warning message isn't accidentally missed. · 8e0aecf6
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401630
      8e0aecf6
    • Sam Lantinga's avatar
      Fixed bug #191 · ad57e2ae
      Sam Lantinga authored
      [I opted to go for a warning, since I often tweak configure.in, but don't want to rebuild the entire project]
      
      One thing that was lost in the switch from automake to the new build system is
      that there is now no rule to build configure from configure.in.
      
      IMHO, if configure.in gets changed, then at the very least, the build system
      should print out a warning (better, again IMHO, an error) about this fact.
      Else, you easily forget about this when modifying configure.in.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401629
      ad57e2ae