1. 24 Jan, 2006 1 commit
    • Sam Lantinga's avatar
      te: Thu, 17 Apr 2003 11:25:26 -0700 · e0fbb3b5
      Sam Lantinga authored
      From: "Jim"
      Subject: [SDL] Frame buffer patches...
      
      Would seem that GCC 3.2.2 promotes all signed values to unsigned if any single vlaue is unsigned in an expression...
      
      for instance when calculating an elo touch position....evertyhign is an (int) except for cach_vinfo.xres which is unsigned.  THerefore if y
      ou reverse the SDL_ELO_MIN_X and SDL_ELO_MAX_X values the resulging negative value pegs the expression to it's max.  Attached it the accumu
      lated patch to typecast the unsigned values to (int)
      
      - *dx = (cache_vinfo.xres - (cache_vinfo.xres * (input_x - ELO_MIN_X)) / width);
      
      + *dx = ((int)cache_vinfo.xres - ((int)cache_vinfo.xres * (input_x - ELO_MIN_X)) / width);
      
      and also to provide quite failure to operations which have the screen currently locked...
      
      The touch screen I'm using the original values were exactly opposite of any position I touched on the screen - evaluating the math the expr
      ession SHOULD have handled reversing the min and max values - and after casting the unsigned .xres and .yres to a signed int - worked well.
      ..
      
      Jim
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401262
      e0fbb3b5
  2. 20 Jan, 2006 1 commit
    • Sam Lantinga's avatar
      Date: Thu, 19 Jan 2006 20:02:29 +0200 · ba553ad7
      Sam Lantinga authored
      From: Vassilis Virvilis <vasvir@iit.demokritos.gr>
      Subject: [SDL] Request: Please reconsider adding tag in SDL_Event
      
      Hi,
      
      Patch in question:
      
      --- include/SDL_events.h        20 Aug 2004 18:57:01 -0000      1.11
      +++ include/SDL_events.h        19 Jan 2006 17:35:09 -0000
      @@ -214,7 +214,7 @@
        } SDL_SysWMEvent;
      
        /* General event structure */
      -typedef union {
      +typedef union SDL_Event {
               Uint8 type;
               SDL_ActiveEvent active;
               SDL_KeyboardEvent key;
      
      Reasoning:
      ----------
      1) Allows forward declaration of the SDL_Event union in C++. Please
      note that in plain C it is possible to forward declare it.
      
      2) Forward declaration is good because it allows encapsulation. It hides
      the specific implementation and does not necessarily exposes SDL staff
      to my appication's namespace
      
      3) It can't harm plain C because tags are living in a different namespace
      than typenames
      
      4) It is already done like this in other places in SDL. Check for example
      SDL_KeySym, and SDL_.*Event structures.
      
      5) Right now I have to include SDL/event.h from a C++ header file. See 2)
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401261
      ba553ad7
  3. 19 Jan, 2006 9 commits
  4. 14 Jan, 2006 1 commit
    • Ryan C. Gordon's avatar
      Catch X11 extension errors...since most of these are notifications that we · 37f69928
      Ryan C. Gordon authored
       queried for a missing extension (such as the XiG vidmode one that most
       people don't have), and default Xlib behaviour is to write notification to
       stderr, this tends to generate incorrect bug reports.
      
      Since we'll actually deal with the missing extension when querying for it,
       we ignore these errors in our hook. The rest continue to pass through to
       the default handler.
      
      Fixes Bugzilla #42.
      
      --ryan.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401251
      37f69928
  5. 13 Jan, 2006 4 commits
  6. 12 Jan, 2006 2 commits
    • Ryan C. Gordon's avatar
      Patched to compile. · 802fb960
      Ryan C. Gordon authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401246
      802fb960
    • Ryan C. Gordon's avatar
      Add XME hooks to X11 driver instead of relying on libxme...libxme hasn't · c1c1b65a
      Ryan C. Gordon authored
       changed in five years, and it's a small .c file that just calls into the X11
       dependencies we already use elsewhere. Including it directly allows us to
       make use of the dynamic X11 code.
      
      Fixes Bugzilla #41.
      
      --ryan.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401245
      c1c1b65a
  7. 10 Jan, 2006 1 commit
  8. 08 Jan, 2006 3 commits
    • Ryan C. Gordon's avatar
      From Bug #36: · 958cb54a
      Ryan C. Gordon authored
      There are a couple of issues with the selection of Altivec alpha-blitting
      routines in CalculateAlphaBlit() in src/video/SDL_Blit_A.c.
      
      1) There's no check for the presence of Altivec when checking if the
      Blit32to565PixelAlphaAltivec() routine can be selected.
      
      2) Altivec cannot be used in video memory, and there's no check if the
      destination surface is a hardware surface. (Alpha-blitting to a hardware
      surface with GPU support is a bad idea, but somebody's bound to do it anyway.)
      
      Patch to fix these attached.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401243
      958cb54a
    • Patrice Mandin's avatar
      Rollback · 63a21208
      Patrice Mandin authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401242
      63a21208
    • Patrice Mandin's avatar
      Load default OpenGL library if needed at driver initialization · 107e0fbf
      Patrice Mandin authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401241
      107e0fbf
  9. 06 Jan, 2006 5 commits
  10. 05 Jan, 2006 6 commits
  11. 04 Jan, 2006 5 commits
  12. 02 Jan, 2006 2 commits