1. 27 Sep, 2009 7 commits
    • Sam Lantinga's avatar
      Improved bug #759 · f0e159b3
      Sam Lantinga authored
      Don't crash if creating the X image failed.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403924
      f0e159b3
    • Sam Lantinga's avatar
      Fixed bug #582 · b3d7109c
      Sam Lantinga authored
       Tomi Belan      2008-05-03 00:52:32 PDT
      
      If you release a mouse button while an application is minimized, the
      application won't notice it and will still report the button is pressed.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403923
      b3d7109c
    • Sam Lantinga's avatar
      Better fix from Max Horn · caa77344
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403922
      caa77344
    • Sam Lantinga's avatar
      Fixed bug #725 · cc0b9d56
      Sam Lantinga authored
      Don't let windows reposition the fullscreen window.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403921
      cc0b9d56
    • Sam Lantinga's avatar
      Fixed bug #713 · f4571bcb
      Sam Lantinga authored
      Don't clamp the mouse coordinates to the video surface size, instead clamp them  to the last known window size.
      
      This allows users to get the correct mouse coordinates even if they don't call SDL_SetVideoMode() in response to an SDL_VIDEORESIZE event (used as a hack to retain the OpenGL context on Windows and Linux after a window resize)
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403920
      f4571bcb
    • Sam Lantinga's avatar
      Added missing DirectX data · f9a7a84a
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403919
      f9a7a84a
    • Sam Lantinga's avatar
      Fixed bug #586 · 86d23fea
      Sam Lantinga authored
       Vincent Povirk      2009-09-26 16:58:32 PDT
      
      patch for setting the input hint correctly
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403918
      86d23fea
  2. 26 Sep, 2009 6 commits
    • Sam Lantinga's avatar
      Fixed bug #810 · 0f710e40
      Sam Lantinga authored
       Lauri Kenttä      2009-09-26 06:42:23 PDT
      
      Support for disabling stdio redirect with environment variables.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403917
      0f710e40
    • Sam Lantinga's avatar
      Fixed 32-bit build · 8299975e
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403915
      8299975e
    • Sam Lantinga's avatar
      Fixed bug #806 · f1c0aa6d
      Sam Lantinga authored
       Max Horn      2009-09-24 13:16:05 PDT
      
      Current SDL 1.2 SVN luckily builds on several systems now: 10.4 (PPC and 32bit intel), 10.5 (32 bit) and 10.6 (32 bit). However, it fails to build on 10.5 in 64 bit mode
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403914
      f1c0aa6d
    • Sam Lantinga's avatar
      Fixed bug #797 · ce102864
      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--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403913
      ce102864
    • Sam Lantinga's avatar
      Fixed bug #734 · 34602312
      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--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403906
      34602312
    • Sam Lantinga's avatar
      Fixed crash with right side up BMP files · 269b8143
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403900
      269b8143
  3. 23 Sep, 2009 7 commits
    • Sam Lantinga's avatar
      Fixed bug #719 · 5cbd26fc
      Sam Lantinga authored
       Mike Blaguszewski      2009-03-23 13:32:22 PDT
      
      Patch to 1.2 HEAD that fixes the issue
      
      Fixes bug in SDL 1.2.13 where clicking on an app's title bar to activate the
      app, when cursor capturing is enabled, will cause the window to jump. This is
      because SDL's handler for activate events calls a low-level Quartz function to
      move the cursor. Calling this when the mouse is down in the title bar confuses
      the WindowServer into thinking the title bar has been dragged. The patch defers
      processing of activate events in this case.
      
      The bottom line is that CGWarpMouseCursorPosition() is not safe to call when
      the mouse in down in a window's title bar.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403890
      5cbd26fc
    • Sam Lantinga's avatar
      Fixed bug #732 · 9dc2dc2f
      Sam Lantinga authored
      If no -L is present in the library spec, try /usr/lib
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403888
      9dc2dc2f
    • Sam Lantinga's avatar
      Fixed bug #803 · 909c0ec5
      Sam Lantinga authored
       Andrey      2009-09-21 19:14:43 PDT
      
      gapi->hiresFix depends on the parameters GetSystemMetrics (SM_CXSCREEN) and
      GetSystemMetrics (SM_CXSCREEN).
      After the "Open GAPI display" they are changing.
      Small patch fixed it.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403887
      909c0ec5
    • Sam Lantinga's avatar
      Potentially fixed bug #774 · b35b7e8c
      Sam Lantinga authored
      There's a mismatch between ndev and MAX_INPUTS
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403886
      b35b7e8c
    • Sam Lantinga's avatar
      Fixed endianness issues with fullscreen mode · b0c831dd
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403885
      b0c831dd
    • Sam Lantinga's avatar
      Possibly fixed bug #601, definitely fixed a potential issue with threads · a0d5e9ed
      Sam Lantinga authored
      stopping and starting in rapid succession.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403883
      a0d5e9ed
    • Sam Lantinga's avatar
      Added some extra headers · f3ce6c99
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403882
      f3ce6c99
  4. 22 Sep, 2009 5 commits
  5. 21 Sep, 2009 15 commits
    • Sam Lantinga's avatar
      Added header guards for SDLMain.h · 45c45e3e
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403871
      45c45e3e
    • Sam Lantinga's avatar
      Fix for expression error by Torsten Giebl - Thanks! :) · 112e0b2c
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403870
      112e0b2c
    • Sam Lantinga's avatar
      Fixed bug #638 · 5556bfb1
      Sam Lantinga authored
       Philipp Nordhus      2008-11-05 13:56:33 PST
      
      The Linux version of SDL_SYS_JoystickQuit() tries to free an invalid pointer
      when the number of joysticks was reduced since the last call.
      
      Reproduce: Connect two joysticks, call SDL_Init() and SDL_Quit(), then
      disconnect one joystick and call the functions again.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403869
      5556bfb1
    • Sam Lantinga's avatar
      Fixed bug #637 · 214b2485
      Sam Lantinga authored
      Switched right click emulation to be Ctrl-click, which matches Mac OS X
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403868
      214b2485
    • Sam Lantinga's avatar
      Whoops, need both the header and the library! · 73915a03
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403866
      73915a03
    • Sam Lantinga's avatar
      Fixed bug #727 · 38e90ccb
      Sam Lantinga authored
       Lorenzo Desole      2009-04-19 07:36:10 PDT
      
      I am one of the developers of a multimedia application (My Media System MMS),
      which uses SDL.
      
      MMS is normally running in fullscreen mode but it switches it off before
      launching external applications (mplayer, xine, etc.).
      
      The problem with fullscreen is that when the latter is switched off either via
      SDL_WM_ToggleFullScreen() or SDL_SetVideoMode(), SDL compares the current
      screen sizes with the ones saved when the video system was initted, and if they
      don't match, it calls XF86VidModeSwitchToMode() to switch to the old modeline.
      
      This makes it impossible for external programs and for MMS itself to use RandR
      to change the screen size, because next time fullscreen mode is turned off, it
      bombs out with the following error:
      
      X Error of failed request:  BadValue (integer parameter out of range for
      operation)
      Major opcode of failed request:  136 (XFree86-VidModeExtension)
      Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
      [...]
      
      Obviously this happens only if the new screen resolution is smaller than the
      original one and XF86VidModeSwitchToMode() can't succeed.
      
      I couldn't find any way to inform SDL that the screen resolution it uses as
      reference is no longer valid.
      
      This can be fixed by adding "save_mode(this)" to
      ./src/video/x11/SDL_x11modes.c, API X11_EnterFullScreen(_THIS), like this:
      
      int X11_EnterFullScreen(_THIS)
      {
          int okay;
      +    save_mode(this);
      
      I can't rule out possible side effects, but I don't see any.
      
      While I admit this is a minor issue for the general users, it is a major
      showstopper for our program where the ability to change screen resolution and
      refresh rate according to the movie being played, is very important.
      
      Thanks in advance.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403865
      38e90ccb
    • Sam Lantinga's avatar
      Fixed bug #714 · 014b779c
      Sam Lantinga authored
      fuzzyTew@gmail.com      2009-03-14 15:18:45 PDT
      
      Created an attachment (id=305) [details]
      patch to change HAVE_ICONV to HAVE_ICONV_H
      
      There are two separate iconv checks in configure -- one for the header file and
      one for the library.  include/SDL_stdinc.h uses the library define to see
      whether or not it should reference the types defined in the header, which
      naturally breaks if the library exists and the header does not.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403864
      014b779c
    • Sam Lantinga's avatar
      Fixed bug #674 · f85df3b6
      Sam Lantinga authored
       Matej     2009-01-08 09:25:34 PST
      
      Hello,
      I maintain a cross-platform project that uses SDL.
      One of the users who runs OSX has told me that he has problems with linking to
      SDL due to missing -framework option.
      I think that the problem is because of this:
      'sdl-config --libs' outputs '-L/opt/local/lib -lSDLmain -lSDL
      -Wl,-framework,Cocoa'
      All the options are passed to the linker except the last one. I think that the
      good output should be just:
      '-L/opt/local/lib -lSDLmain -lSDL -framework Cocoa'
      since those options (--libs) are passed to the linker, so the '-Wl' option is
      redundant and possibly harmful in this very case
      I use autotools with libtool to do the build...
      Regards,
      Matej
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403861
      f85df3b6
    • Sam Lantinga's avatar
      Fixed bug #795 · 954609b9
      Sam Lantinga authored
       Andrey      2009-09-14 21:16:53 PDT
      
      WinCE GetCursorPos fixed
      
      I'm using iPAQ HP rx5919, with Windows Mobile 5.
      And I also use mingw32ce 0.59.1 toolchain.
      I fixed this, see attachment patch.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403860
      954609b9
    • Sam Lantinga's avatar
      Fixed bug #695 · 73eadb47
      Sam Lantinga authored
       Nomad      2009-02-08 10:34:43 PST
      
      The 2nd init is good.
      The problem is in "SDL_dibevents.c"
      in DIB_CreateWindow()
      
      in SVN:
      {
          char *windowid = SDL_getenv("SDL_WINDOWID");
      
          SDL_RegisterApp(NULL, 0, 0);
      
          ... using of data to which windowid is points
      
      problem:
          SDL_RegisterApp() may call SDL_getenv() and windowid will point to some
      wrong string
      
      solve:
          char *windowid;
      
          SDL_RegisterApp(NULL, 0, 0);
      
          windowid = SDL_getenv("SDL_WINDOWID");
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403859
      73eadb47
    • Sam Lantinga's avatar
      Fixed bug #778 · 88928312
      Sam Lantinga authored
       Derek Weitzel      2009-08-11 12:17:09 PDT
      
      Window Manager: xorg-x11-twm-1.0.1-3.1
      
      Running through Xdmx.  The same application could expand to the full screen
      using GLUT (freeglut).
      
      Overview:
      While running on a very high resolution display, discovered the maximium width
      of the window is 4096.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403858
      88928312
    • Sam Lantinga's avatar
      Fixed bug #706 · 1106b669
      Sam Lantinga authored
       Ken Bull      2009-02-25 13:22:02 PST
      
      Adds Doxygen support for all headers (except config and boilerplate headers) in
      the include folder for SDL-1.2 revision 4446.
      
      While in general SDL is quite thoroughly commented, none of these comments are
      correctly formatted for Doxygen and are generally inconsistent in their
      formatting.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403857
      1106b669
    • Sam Lantinga's avatar
      Fixed bug #698 · 2e1e7fc4
      Sam Lantinga authored
       Hans de Goede      2009-02-13 01:10:52 PST
      
      Since the new "glitch free" version of pulseaudio (used in Fedora 10 amongst
      others), the sound of SDL using apps (like a simple playmus call) has been
      crackling.
      
      While looking in to fixing this I noticed that the current pulseaudio code in
      SDL uses pa_simple. However pa_simple uses a thread to pump pulseaudio events
      and ipc, given that SDL already has its own thread for audio handling this is
      clearly suboptimal, leading to unnecessary context switching IPC, etc. Also
      pa_simple does not allow one to implement the WaitAudio() callback for SDL
      audiodrivers properly.
      
      Given that my work is mostly a rewrite (although some original pieces remain)
      I'm attaching the new .c and .h file, as that is easier to review then the huge
      diff.
      
      Let me know if you also want the diff.
      
      This new version has the following features:
      -no longer use an additional thread next to the SDL sound thread
      -do not crackle with glitch free audio
      -when used with a newer pulse, which does glitch free audio, the total latency
      is
       the same as with the alsa driver
      -proper WaitAudio() implementation, saving another mixlen worth of latency
      -adds a WaitDone() implementation
      
      This patch has been written in consultancy with Lennart Poetering (the
      pulseaudio author) and has been reviewed by him for correct use of the pa API.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403856
      2e1e7fc4
    • Sam Lantinga's avatar
      Fixed bug #615 · e867c836
      Sam Lantinga authored
       Scott McCreary      2008-08-21 10:48:14 PDT
      
      This patch adds support for Haiku.
      http://ports.haiku-files.org/browser/haikuports/trunk/media-libs/libsdl/SDL-1.2.13-haiku.diff
      Haiku is an open-source recreation of BeOS.  It has better POSIX compliance
      than beOS did, and other improved features, which in some cases causes us to
      have to "undo" previous BeOS workarounds.
      Here's our port log entry for it, showing the steps to force the changes into
      configure and Makefile:
      http://ports.haiku-files.org/wiki/media-libs/libsdl/1.2.13/1
      Note that this was only tried on 1.2.13 stable so far.
      Haiku is using a newer config.guess / config.sub that doesn't yet seem to be in
      the released libtool, so we are having to copy it in for now.
      http://haiku-files.org/files/optional-packages/
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403854
      e867c836
    • Sam Lantinga's avatar
      Oh yeah, we have GLX support too. · 2f54acf3
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403851
      2f54acf3