1. 22 Mar, 2006 14 commits
    • Ryan C. Gordon's avatar
      Patched to compile on 32-bit X11, I think. · 09d17c73
      Ryan C. Gordon authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401591
      09d17c73
    • Sam Lantinga's avatar
      Date: Tue, 4 Mar 2003 15:05:31 -0800 · 2f58ef08
      Sam Lantinga authored
      From: "Jim"
      Subject: [SDL] Frame Buffer patches...
      
       Okay I'm new at patch generation - so please tell me if there's a better way
       I could have done this.
      
       Attached are two patch files generated with 'cvs diff -u'
      
       SDL-fb-open-lock.patch applies to SDL_fbvideo.c
          Modifies the open loop to check /dev/fb/0 found on devfs...
      
          Modifies the lock code to return failure if the current virtual terminal
       is not the one opened for frame buffer writing...
         Lock would hang forever if switched away (ctrl-alt-F1) ...
      
       SDL-fb-mousedrv-screensave.patch applies to SDL_fbevents.c
          Switches default mouse mode based on SDL_MOUSEDRV - currently only
       accepts PS2 - otherwise default is MS Mouse.
      
          When the screen is switched - exisiting code (wrapped in ifdef
       SAVE_SCREEN_COTENTS) would save the wrong bit of the screen....
           ( I run frame buffer 1600x1200, the size I requested was 800x600 - the
       save would save the top 800 lines (non biased) and restore them... Adding
       screen->offset fixed that )
      
          However, if that option is not set, then a call to SDL_UpdateRect (full
       screen) is made. (which may have had it's contents changed since the screen
       is not entirely locked because of lock-failure patch)
      
       Jim
      
      [patches slightly tweaked for SDL 1.2.10]
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401590
      2f58ef08
    • Sam Lantinga's avatar
      Fixed bug #61 · 864d889b
      Sam Lantinga authored
      Date: Mon, 24 Feb 2003 13:35:11 +0800
      From: "Leonidas"
      Subject: [SDL] Re: Trigger mouse wheel event -- not in X-environment
      
      I have looked into the codes for the IMPS/2 mouse wheel mode of fbcon driver.
      But I found something weird.
      
      Here's the original codes to set a mouse device into IMPS/2 mode in libSDL.
      In the file src/video/fbcon/SDL_fbevents.c
      In function static int set_imps2_mode(int fd)
      ...
       Uint8 set_imps2[] = {0xf3, 200, 0xf3, 100, 0xf3, 80};
       Uint8 reset = 0xff;
       fd_set fdset;
       struct timeval tv;
       int retval = 0;
      
       // Set mouse device fd into IMPS/2 mode
       if ( write(fd, &set_imps2, sizeof(set_imps2)) == sizeof(set_imps2) ) {
        // ??? then RESET it..???
        if (write(fd, &reset, sizeof (reset)) == sizeof (reset) ) {
         retval = 1;
        }
       }
      ...........
      
      Since it sets IMPS/2 mode then reset it, so you will never get a mouse into
      IMPS/2 mode to use its wheel.
      What I did to make the wheel usable is remove the RESET codes.
      ....
       if ( write(fd, &set_imps2, sizeof(set_imps2)) == sizeof(set_imps2) ) {
          /*
          if (write(fd, &reset, sizeof (reset)) == sizeof (reset) ) {
          }
         */
         retval = 1;
       }
      ....
      And in FB_OpenMouse(_THIS)
      Make the device /dev/psaux to be setted into imps2 mode  such that it can be
      detected its a imps/2 mouse or not.
      (my mouse device is on ps2, but the codes only set /dev/input/mice device
      originally)
      Then I have done, I can use the mouse wheel when SDL uses frame buff driver.
      
      I dont exactly know I did right or wrong, I just change it for my usuage.
      Correct me please, if I did something wrong.
      
      Best regards,
      Li Tsung Lin
      IAP Product Dept. Engineer
      EeRise Corp. (Image Processing System, Computer Vision System)
      Hsin Tien, Taipei Hsien, Taiwan, R.O.C.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401589
      864d889b
    • Sam Lantinga's avatar
      *** empty log message *** · 2b370344
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401588
      2b370344
    • Sam Lantinga's avatar
      Fixed bug #50 · c065f088
      Sam Lantinga authored
      Using ctrl-alt-fn for flipping instead of alt-fn may help a few games that
      actually use that key combination.
      
      [Note: This is also consistent with X11 on the Linux console]
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401587
      c065f088
    • Sam Lantinga's avatar
      Eric rocks. :) · b38448f7
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401586
      b38448f7
    • Sam Lantinga's avatar
      I'm dumping the old Xcode support, since it's too hard to maintain, · 16edbba0
      Sam Lantinga authored
      and SDL no longer builds on MacOS X 10.3 natively, as of the 7.0.4
      QuickTime update.
      
      MacOS X 10.4 is the new build baseline for the SDL MacOS X packages.
      
      ... it would shore be nice if I had it. :)
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401585
      16edbba0
    • Sam Lantinga's avatar
      The exports file is no longer used by the Xcode project · cbb00927
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401584
      cbb00927
    • Ryan C. Gordon's avatar
      Reverted SDL_config.h from accidental checkin. (see Bugzilla #171). · f2465cd8
      Ryan C. Gordon authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401582
      f2465cd8
    • Sam Lantinga's avatar
      GLX_STEREO doesn't have a parameter · 9424eb47
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401581
      9424eb47
    • Ryan C. Gordon's avatar
      Whoops, that shouldn't have snuck in there. · b87e7b76
      Ryan C. Gordon authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401580
      b87e7b76
    • Ryan C. Gordon's avatar
      Updated dynamic X11 code. See details in Bugzilla #170. · 8487ec66
      Ryan C. Gordon authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401579
      8487ec66
    • Sam Lantinga's avatar
      Default to use the visibility attribute, on gcc (is this okay?) · e0c405fa
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401578
      e0c405fa
    • Ryan C. Gordon's avatar
      Added support for gcc4's -fvisibility=hidden option. · 0fc4f947
      Ryan C. Gordon authored
         Fixes Bugzilla #169.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401577
      0fc4f947
  2. 21 Mar, 2006 13 commits
  3. 20 Mar, 2006 3 commits
    • Sam Lantinga's avatar
      ------- Comment #8 From Sergey Svishchev 2006-03-19 12:35 [reply] ------- · 625655e2
      Sam Lantinga authored
      I've made a similar patch to BSD-specific USB driver, please review it too.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401563
      625655e2
    • Sam Lantinga's avatar
      Fixed bug #113: · 4c3dfbcf
      Sam Lantinga authored
      Date: Sat, 16 Apr 2005 08:39:22 +1000
      From: "Eric Mangold"
      Subject: [SDL] Window manager does not show SDL window titles
      
      Hello,
      
      I have an issue with SDL-using applications and the sawfish window manager.
      
      The problem is that SDL windows do not show the window caption. My gnome
      panel *does* show the window name, but the actual sawfish window frame
      shows no caption at all. All other non-SDL applications that I use work
      fine.
      
      I tried a couple other window managers, and they *were* able to show the
      SDL window captions correctly. Though there many be other WMs that can't.
      
      I believe the problem is that SDL is using the UTF8_STRING type for the
      window's WM_NAME and WM_ICON properties. In fact, WM_NAME and WM_ICON are
      supposed to set to a TEXT type, usually STRING (ISO 8859-1).
      The property names _NET_WM_NAME and _NET_WM_ICON_NAME should be used to
      store the UTF8_STRING versions of the window title and icon name.
      
      You can see the properties I refer to with a command like this:
      xprop|grep -e "WM.*NAME"
      
      Please note the freedesktop.org standard:
      http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2506954
      
      This page talks a little bit about the history of these properties. Just
      search down the page for "WM_NAME".
      http://www.cl.cam.ac.uk/~mgk25/unicode.html
      
      Please let me know if I can be of any assistance in resolving this issue.
      
      Thanks,
      Eric Mangold
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401562
      4c3dfbcf
    • Sam Lantinga's avatar
      Fixed bug #90 · ed659a7d
      Sam Lantinga authored
      The palette -> RGBA blit wasn't following the rule:
       * RGB->RGBA:
       *     SDL_SRCALPHA not set:
       *      copy RGB, set destination alpha to source per-surface alpha value.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401561
      ed659a7d
  4. 19 Mar, 2006 7 commits
    • Sam Lantinga's avatar
      Fixed bug #84 · ec2060c8
      Sam Lantinga authored
      Actually implemented banked update for SVGAlib
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401560
      ec2060c8
    • Sam Lantinga's avatar
      Fixed bug #89 · ac4f3287
      Sam Lantinga authored
      Date: Sun, 23 Oct 2005 16:39:03 +0200
      From: "A. Schmid" <sahib@phreaker.net>
      Subject: [SDL] no software surfaces with svgalib driver?
      
      Hi,
      
      I noticed that the SDL (1.2.9) svgalib driver only makes use of linear
      addressable (framebuffer) video modes. On older systems (like one of
      mine), linear addressable modes are often not available.
      Especially for cards with VESA VBE < 2.0 the svgalib vesa driver is
      unusable, since VESA only supports framebuffering for VBE 2.0 and later.
      
      The changes necessary to add support for software surfaces seem to be
      relatively small. I only had to hack src/video/svga/SDL_svgavideo.c (see
      attached patch). The code worked fine for me, but it is no more than a
      proof of concept and should be reviewed (probably has a memory leak when
      switching modes). It also uses the vgagl library (included in the
      svgalib package) and needs to be linked against it.
      
      -Alex
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401559
      ac4f3287
    • Sam Lantinga's avatar
      Fixed bug #84 · 877556f5
      Sam Lantinga authored
      Date: Sun, 23 Oct 2005 16:39:03 +0200
      From: "A. Schmid" <sahib@phreaker.net>
      Subject: [SDL] no software surfaces with svgalib driver?
      
      Hi,
      
      I noticed that the SDL (1.2.9) svgalib driver only makes use of linear
      addressable (framebuffer) video modes. On older systems (like one of
      mine), linear addressable modes are often not available.
      Especially for cards with VESA VBE < 2.0 the svgalib vesa driver is
      unusable, since VESA only supports framebuffering for VBE 2.0 and later.
      
      The changes necessary to add support for software surfaces seem to be
      relatively small. I only had to hack src/video/svga/SDL_svgavideo.c (see
      attached patch). The code worked fine for me, but it is no more than a
      proof of concept and should be reviewed (probably has a memory leak when
      switching modes). It also uses the vgagl library (included in the
      svgalib package) and needs to be linked against it.
      
      -Alex
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401558
      877556f5
    • Sam Lantinga's avatar
      Left the debug code more explicit · d21bbd6c
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401557
      d21bbd6c
    • Sam Lantinga's avatar
      Fixed bug #79 · 5d285ff9
      Sam Lantinga authored
      Implemented snd_pcm_sw_params_set_start_threshold() and snd_pcm_sw_params_set_avail_min() in the ALSA 0.9 driver.
      This doesn't actually change any latency for me, but it's the right thing to do...
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401556
      5d285ff9
    • Sam Lantinga's avatar
      Fixed bug #4 · 9b2bff03
      Sam Lantinga authored
      [Note: I'm applying this patch since it's a cleaner version of what's already implemented, and supports this controller on older kernels.  I'll ask to make sure this doesn't break on the new kernels where it's no longer necessary]
      
      Date: Mon, 21 Mar 2005 09:41:11 -0500
      From: Chris Nelson
      Subject: SDL Patch
      
      Hey, Ryan.
      
      I submitted the following patch about a year ago. It's just a simple
      patch for the linux port, to make multiple joysticks each appear to SDL
      as their own device, if they are on the same USB port (specifically,
      these guys
      <http://www.consoleplus.co.uk/product_info.php?pName=super-joybox-5-quad-joypad-converter>,
      
      which allow 4 Playstation2 controllers to be accessed via a single USB
      port). Without this patch, SDL pretty much drops the ball, and reports
      that there are 4 joysticks available when less than that number  are
      plugged in.
      
      My work built upon the work of another person with the same device. When
      I submitted the patch to the list, he tested it, but it didn't work for
      him, so the patch was never accepted. Maybe about 3 times in the past
      year, I've tried to email the guy, to see if he couldn't run my new
      version, complete with debug code to diagnose the problem he was having.
      He never got back  to me.
      
      So, I'm attaching the patch. I wish I knew why it didn't work for him,
      but I've been using it for the last year with no problems. Let me know
      if you need any more information, or have any ideas as to how I could
      test it. I'd like to see it in the tree, but I want to make sure it works.
      
      -Chris
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401555
      9b2bff03
    • Sam Lantinga's avatar
      Fixed bug #166 · 505a5846
      Sam Lantinga authored
      From the autoconf obsolete macros documentation:
      Macro: AC_CANONICAL_SYSTEM
      
          Determine the system type and set output variables to the names of the canonical system types. See section Getting the Canonical System Type, for details about the variables this macro sets.
      
          The user is encouraged to use either AC_CANONICAL_BUILD, or AC_CANONICAL_HOST, or AC_CANONICAL_TARGET, depending on the needs. Using AC_CANONICAL_TARGET is enough to run the two other macros.
      
      From the documentation for the canonical environments:
      case $target in
      i386-*-mach* | i386-*-gnu*)
                   obj_format=aout emulation=mach bfd_gas=yes ;;
      i960-*-bout) obj_format=bout ;;
      esac
      
      Note that the above example uses $target because it's taken from a tool which can be built on some architecture ($build), run on another ($host), but yet handle data for a third architecture ($target). Such tools are usually part of a compiler suite, they generate code for a specific $target.
      
      However $target should be meaningless for most packages. If you want to base a decision on the system where your program will be run, make sure you use the $host variable.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401554
      505a5846
  5. 18 Mar, 2006 2 commits
  6. 17 Mar, 2006 1 commit