1. 22 Mar, 2009 1 commit
  2. 17 Mar, 2009 2 commits
    • Sam Lantinga's avatar
      Fixed iPhone demos · 7a8aae67
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403559
      7a8aae67
    • Sam Lantinga's avatar
      Date: Thu, 12 Mar 2009 15:14:38 +0200 · 4d78fdce
      Sam Lantinga authored
      From: "Mike Gorchak"
      Subject: New QNX patches
      
      In photon.tar.gz there are new files to be placed into ./src/video/photon/
      directory.
      
      qnx3.diff - new patches for QNX support. Since I've found a lot of bugs in
      the new GF QNX Graphics Framework and I'm suspended development for GF
      driver until already found bugs will be fixed and switched to Photon driver
      implementation.
      
      sdl.diff - I've found that renderer creation result has not been checked and
      SDL shows error like: "there is no current renderer", now SDL will show
      correct error which was set be renderer.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403558
      4d78fdce
  3. 15 Mar, 2009 1 commit
  4. 12 Mar, 2009 1 commit
  5. 06 Mar, 2009 2 commits
  6. 04 Mar, 2009 3 commits
    • Sam Lantinga's avatar
      Date: Wed, 4 Mar 2009 15:38:22 +0200 · ba4c542e
      Sam Lantinga authored
      From: "Mike Gorchak"
      Subject: Re: About QNX support in SDL 1.3
      
      Here is another batch of patches.
      
      1) Makefile.in - added SDL_opengles.h header as header to install.
      2) configure.in - Added special define to detect Common Lite OpenGL ES
      library in case if Common library is not installed. Added check for
      clock_gettime in libc (in QNX it is in libc).
      3) SDL_config.h.in - Added SDL_VIDEO_RENDER_OPENGL_ES and
      SDL_VIDEO_OPENGL_ES declarations for configure script autodetection.
      4) SDL_opengles.h - Added GL_API definition if it is not defined. Added
      extension GL_OES_draw_texture because OpenGL ES Renderer uses it without
      declaration. Added GL_OES_vertex_buffer_object extension, which is supported
      under QNX OpenGL ES. Added GL_OES_single_precision extension.
      5) To the test directory I've added building OpenGL ES test applications
      through the autotools suite. Was support for iPhone IDE building only.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403553
      ba4c542e
    • Sam Lantinga's avatar
      Updated config.guess and config.sub · 7c0777a9
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403552
      7c0777a9
    • Sam Lantinga's avatar
      Updated libtool from version 1.5.22 to 2.2.6a, so it works on current QNX · dc650bdd
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403551
      dc650bdd
  7. 03 Mar, 2009 2 commits
    • Sam Lantinga's avatar
      Mac OS X and iPhoneOS have the full math library · 160fe5bc
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403550
      160fe5bc
    • Sam Lantinga's avatar
      Date: Mon, 2 Mar 2009 16:27:42 +0200 · e87963bb
      Sam Lantinga authored
      From: "Mike Gorchak"
      Subject: About QNX support in SDL 1.3
      
      Right now I'm working on QNX SDL 1.3 drivers implementation and looks like a
      lot of code must be completely reworked. But I'm ready for it :) Also I want
      to add QNX Graphics Framework SDL driver, which is fullscreen graphics
      framework, with support of hardware accelerated OpenGL ES implementations.
      This Graphics Framework (called GF in QNX) could also use QNX Photon (window
      manager GUI) as window manager.
      
      In the attachment initial patch for QNX support in SDL 1.3
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403549
      e87963bb
  8. 27 Feb, 2009 2 commits
  9. 21 Feb, 2009 2 commits
  10. 19 Feb, 2009 5 commits
  11. 18 Feb, 2009 1 commit
  12. 17 Feb, 2009 6 commits
    • Sam Lantinga's avatar
      Fixed bug #684 · aad9f51b
      Sam Lantinga authored
      Reworked Pierre's patch a little bit, which added SDL_WaitEventTimeout()
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403538
      aad9f51b
    • Sam Lantinga's avatar
      indent · a0978cdf
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403537
      a0978cdf
    • Sam Lantinga's avatar
      Fixed bug #681 · 90b4c693
      Sam Lantinga authored
         Description From  Philipp   2009-01-16 20:50:01   (-) [reply]
      
      The File test/README from the svn says this:
      
          testgl        A very simple example of using OpenGL with SDL
          testgl2        Improved version of testgl
      
      It is actually exchanged.
      
      testgl.c is the improved version right now and testgl2.c the simple one.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403536
      90b4c693
    • Sam Lantinga's avatar
      Date: Thu, 27 Dec 2007 07:38:25 +0000 · 605f1db1
      Sam Lantinga authored
      From: John Bartholomew
      Subject: [SDL] SDL Semaphore implementation broken on Windows?
      Hi,
      
      Over the past couple of days, I've been battling with SDL, SDL_Mixer and SMPEG to try to find an audio hang bug.  I believe I've found the problem, which I think is a race condition inside SDL's semaphore implementation (at least the Windows implementation).  The semaphore code uses Windows' built in semaphore functions, but it also maintains a separate count value.  This count value is updated with bare increment and decrement operations in SemPost and SemWaitTimeout - no locking primitives to protect them.
      
      In tracking down the apparent audio bug, I found that at some point a semaphore's count value was being decremented to -1, which is clearly not a valid value for it to take.
      
      I'm still not certain exactly what sequence of operations is occuring for this to happen, but I believe that overall it's a race condition between a thread calling SemPost (which increments the count) and the thread on the other end calling SemWait (which decrements it).
      
      I will try to make a test case to verify this, but I'm not sure if I'll be able to   (threading errors being difficult to reproduce even in the best    circumstances).
      
      However, assuming this is the cause of my problems, there is a very
      simple fix:
      Windows provides InterlockedIncrement() and InterlockedDecrement()
      functions to perform increments and decrements which are guaranteed to be atomic.  So the fix is in thread/win32/SDL_syssem.c: replace occurrences of --sem->count with InterlockedDecrement(&sem->count); and replace occurrences of ++sem->count with InterlockedIncrement(&sem->count);
      
      This is using SDL v1.2.12, built with VC++ 2008 Express, running on a
      Core 2 duo processor.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403535
      605f1db1
    • Sam Lantinga's avatar
      Fixed bug #633 · d9d69026
      Sam Lantinga authored
         Description From  Michael Stone   2008-09-25 19:27:29   (-) [reply]
      
      To determine whether a pid is occupied with the kill(pid, 0) idiom, you have to
      test
      
      #include <signal.h>
      #include <errno.h>
      kill(pid, 0) < 0 && errno == ESRCH
      
      not just
      
      #include <signal.h>
      kill(pid, 0) < 0
      
      otherwise you get incorrect results when pid is running as a different user
      (causing kill(pid, 0) to return -1 + EPERM).
      
      src/audio/alsa/SDL_alsa_audio.c is certainly affected by this bug in both
      1.2.13 and 1.3-trunk. It probably occurs in other places as well.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403533
      d9d69026
    • Sam Lantinga's avatar
      Fixed bug #537 · d2e9f851
      Sam Lantinga authored
      Description From  esigra   2008-01-07 16:20:21   (-) [reply]
      
      I try to get a clean compile for a project using SDL. But I get warnings
      from SDL headers when I use -Wold-style-cast. This is especially bad
      because I plan to build the software with -Werror=old-style-cast when we
      have switched over to GCC 4.2, which has that option.
      
      But this problem can be fixed in the SDL headers. I checked out the SVN
      version and made some patches. See the attached patch.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403532
      d2e9f851
  13. 15 Feb, 2009 1 commit
  14. 14 Feb, 2009 2 commits
  15. 12 Feb, 2009 1 commit
  16. 09 Feb, 2009 6 commits
  17. 08 Feb, 2009 1 commit
  18. 07 Feb, 2009 1 commit
    • Sam Lantinga's avatar
      indent · a9ca68d6
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403519
      a9ca68d6