1. 29 Sep, 2009 3 commits
    • Sam Lantinga's avatar
      Reverted revision 4880 since this breaks installation on Mac OS X. · 7641b0d2
      Sam Lantinga authored
      We'll just punt the bug for 1.2.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403940
      7641b0d2
    • Ryan C. Gordon's avatar
      Fixed strict aliasing (or inline asm?) issue. · a743f751
      Ryan C. Gordon authored
      Some versions of GCC need this fix or alpha blending is broken.
      
        Fixes Bugzilla #648.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403939
      a743f751
    • Sam Lantinga's avatar
      Temporary band-aid for bug #575 · 47ede754
      Sam Lantinga authored
      It looks like newer kernels do the logical device mapping in the driver,
      so this code crashes.  I don't have one of these nor do I have remote
      access to debug this, so I'm disabling the logical mapping for now.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403936
      47ede754
  2. 28 Sep, 2009 5 commits
    • Ryan C. Gordon's avatar
      Removed -rpath from link line. · 2a75c8d9
      Ryan C. Gordon authored
      We don't need to look in the library's install dir for dependencies;
       They are all system libraries that should be in other path lists anyhow.
      
       Fixes Bugzilla #499.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403934
      2a75c8d9
    • Ryan C. Gordon's avatar
      Added *.dSYM (Mac OS X debug symbols) to svn:ignore list for test dir. · 1f55bda9
      Ryan C. Gordon authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403933
      1f55bda9
    • Sam Lantinga's avatar
      Fixed compile issue · 24c1ef56
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403930
      24c1ef56
    • Sam Lantinga's avatar
      Added keyboard output for debugging bug #659 · 0284e3d3
      Sam Lantinga authored
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403929
      0284e3d3
    • Sam Lantinga's avatar
      Vitaly Minko to slouken · a1bc67d3
      Sam Lantinga authored
      Hi all,
      
      I wrote a patch, which allows user to rotate the screen in case of fbcon driver.
      The rotation angle is controlled by SDL_VIDEO_FBCON_ROTATION environment variable and possible values are:
      not set        - Not rotating, no shadow.
      "NONE"    - Not rotating, but still using shadow.
      "CW"         - Rotating screen clockwise.
      "UD"          - Rotating screen upside down.
      "CCW"      - Rotating screen counter clockwise.
      
      The patch is based on wscons driver, written by Staffan Ulfberg.
      
      I tested it on
      Device:                Sharp Zaurus SL-C1000
      SDL version:       1.2.13
      Kernel version:    2.6.24.4
      
      Best regards,
      Vitaly.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403928
      a1bc67d3
  3. 27 Sep, 2009 9 commits
    • Sam Lantinga's avatar
      Fixed bug #716 · da048947
      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--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403926
      da048947
    • Sam Lantinga's avatar
      Fixed bug #616 · 0bb1a612
      Sam Lantinga authored
       rainer canavan      2009-03-29 12:30:12 PDT
      
      add default visual to this->hidden->visuals
      
      X11_SetIcon appears to have problems getting the correct bpp for the default
      visual of my screen. With larger icons, this causes a segfault somewhere in
      libX11. Instead of adding the default visual to the internal list, I can work
      around this problem (both the segfault and the distortion) by setting bpp to 32
      before sicon = SDL_CreateRGBSurface(...) in X11_SetIcon, although with this
      patch, it stays at 24.
      
      --HG--
      branch : SDL-1.2
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403925
      0bb1a612
    • 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
  4. 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
  5. 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
  6. 22 Sep, 2009 5 commits
  7. 21 Sep, 2009 5 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