1. 07 May, 2006 3 commits
    • Sam Lantinga's avatar
      Fixed bug #217 · 3a0d72c6
      Sam Lantinga authored
      Sort the DirectX video modes largest to smallest
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401730
      3a0d72c6
    • Sam Lantinga's avatar
      Fixed bug #216 · a7471999
      Sam Lantinga authored
      The attached files allow building the SDL library and tests with the Open
      Watcom compiler for Windows:
      - static library or DLL
      - Debug or Release builds available
      - uses register calling convention of Open Watcom
      - wmake target to build the SDL test samples
      
      Following is a table that shows what works and what doesn't, yet:
      checkkeys       +
      graywin         +
      loopwave        +
      testalpha       +
      testbitmap      +
      testdyngl       +
      testerror       +
      testfile        +
      testgamma       +
      testgl          +
      testhread       +
      testiconv       - (all failed)
      testkeys        +
      testlock        + (after removing calls to raise() from signal handler)
      testoverlay     + (needs 'set SDL_VIDEODRIVER=directx')
      testoverlay2    + (-"-)
      testpalette     +
      testplatform    +
      testsem         +
      testsprite      +
      testtimer       +
      testver         +
      testvidinfo     +
      testwin         - (fading doesn't seem right)
      testwm          +
      torturethread   +
      testcdrom       +
      testjoystick    not tested
      threadwin       +
      
      TODO:
      - make stack calling convention work (has linking issues with dxguid.lib)
      - perform testjoystick (I don't have a joystick)
      - investigate fading in testwin
      - merge with OS/2 port
      - add DOS target
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401729
      a7471999
    • Sam Lantinga's avatar
      Fixed bug #215 · b4ba6518
      Sam Lantinga authored
      The current SVN trunk is missing the SDLCALL specifier at numerous locations.
      
      It has to be added for all (possibly user provided) callbacks.
      
      I stumbled over this while creating a makefile for the OpenWatcom compiler for
      Win32.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401728
      b4ba6518
  2. 05 May, 2006 2 commits
    • Sam Lantinga's avatar
      Fixed bug #80 · cab8a203
      Sam Lantinga authored
      Date: 21 Apr 2003 17:20:20 +0100
      From: Alan Swanson <swanson@uklinux.net>
      Subject: [SDL] New XFree 4.3 Video Mode Patch
      
      
      If you look at the unsorted list of modes returned by X, here's mine;
      
       1280 x 1024 @ 85.0  >
       1024 x 768 @ 100.3  > USER
       800 x 600 @ 125.5   > SET
       640 x 480 @ 124.9   >
       1280 x 1024 @ 75.0  ]
       1280 x 1024 @ 60.0  ]
       1280 x 960 @ 85.0   ] X11
       1280 x 960 @ 60.0   ] AUTO
       1152 x 864 @ 75.0   ]=20
       1152 x 768 @ 54.8   ]
       960 x 720 @ 120.0   ]
      ...
       640 x 400 @ 85.1    ] 256k
       576 x 432 @ 150.0   ] 249k PIXEL
       640 x 350 @ 85.1    ] 224k COUNT
       576 x 384 @ 109.6   ] 221k
      ...
      
      The user set modes come first followed by X set modes which are ordered
      by decreasing number of pixels and refresh.
      
      The reason why every other library or program not using SDL working is
      due to SDL scanning the modes in reverse getting X11 provided modes
      modes with the lowest refresh.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401727
      cab8a203
    • Sam Lantinga's avatar
      Fixed bug #196 · 572d530a
      Sam Lantinga authored
      Use the title and icon stored in the SDL video info, when creating X11 windows.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401726
      572d530a
  3. 04 May, 2006 5 commits
    • Sam Lantinga's avatar
      · 732fcc2a
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401725
      732fcc2a
    • Sam Lantinga's avatar
      Fixed bug #45 · daab242a
      Sam Lantinga authored
      Improved Xinerama support.
      Added support for the SDL_VIDEO_FULLSCREEN_HEAD environment variable, currently supported on X11 Xinerama configurations.
      Only use the VidMode extension on the primary head.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401724
      daab242a
    • Sam Lantinga's avatar
      The install target depends on the libraries being built · b8685c44
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401723
      b8685c44
    • Sam Lantinga's avatar
      Updated to include new languages and platform support · e8d0a496
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401722
      e8d0a496
    • Sam Lantinga's avatar
      Date: Thu, 4 May 2006 08:44:10 +0200 (CEST) · 75263053
      Sam Lantinga authored
      From: Doodle
      Subject: Re: SDL OS/2 build updated?
      
      It seems that I made a mistake in the previous Watcom makefile, leaving
      out some .c files from linking, this is now fixed, and everything builds
      well now.
      
      Doodle
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401721
      75263053
  4. 03 May, 2006 2 commits
  5. 02 May, 2006 2 commits
  6. 01 May, 2006 6 commits
  7. 30 Apr, 2006 3 commits
  8. 29 Apr, 2006 4 commits
    • Sam Lantinga's avatar
      ------- Comment #1 From Max Horn 2006-04-17 03:08 [reply] ------- · 85028a30
      Sam Lantinga authored
      Created an attachment (id=106) [edit]
      Patch for src/joystick/win32/SDL_mmjoystick.c
      
      I am not even a Windows user, so take the following with a grain of salt:
      
      SDL_mmjoystick.c  has a function GetJoystickName which obtains the joystick
      name by looking at the registry. The way it does that seems very fishy to me.
      Namely, it uses the parameter "index" to construct a registry value name (BTW,
      those variables used in the code are really badly named). The value of "index"
      in turn equals the current value of "numdevs", as called from
      SDL_SYS_JoystickInit.
      
      I read through the MSDN docs at
      <http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarinput/html/msdn_extdirect.asp>,
      and I believe the simple fix is to replace line 183 of said file
        SYS_JoystickName[numdevs] = GetJoystickName(numdevs, joycaps.szRegKey);
      by the following:
        SYS_JoystickName[numdevs] = GetJoystickName(SYS_JoystickID[i],
      joycaps.szRegKey);
      
      However, that is only *hiding* the real issue. Problem is, the list of
      joysticks as returned by windows may contains "gaps", and the code deals
      incorrectly with that. Namely those gaps occur if joysticks are
      removed/(re)added, as the reporter observed.
      
      The attached patch fixes this and another (off-by-one) issue in the code. But
      since I have no Windows machine, I can't even test-compile it, so use with
      caution.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401706
      85028a30
    • Sam Lantinga's avatar
      · 2efcd9c6
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401705
      2efcd9c6
    • Sam Lantinga's avatar
      Disable the XRandR extension by default, since KDE maximizes windows which are... · 41c2e03a
      Sam Lantinga authored
      Disable the XRandR extension by default, since KDE maximizes windows which are larger than the new resolution, and then doesn't restore their size and positition when the old resolution is restored.
      The extension can be enabled with the environment variable SDL_VIDEO_X11_XRANDR=1
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401704
      41c2e03a
    • Sam Lantinga's avatar
      Only use -fvisibility=hidden if SDL will define some symbols as available. :) · ff8de4f0
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401703
      ff8de4f0
  9. 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
  10. 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
  11. 26 Apr, 2006 2 commits
  12. 22 Apr, 2006 2 commits