1. 01 Feb, 2006 3 commits
  2. 31 Jan, 2006 10 commits
    • Patrice Mandin's avatar
      Add flag to post mouse button events or not, and use defined function to post them · 38fa054d
      Patrice Mandin authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401313
      38fa054d
    • Sam Lantinga's avatar
      Bah, I don't know what I'm doing. · 323d0d14
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401312
      323d0d14
    • Sam Lantinga's avatar
      Quit building the frigging F77 libtool configuration! · 0fffaabf
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401311
      0fffaabf
    • Sam Lantinga's avatar
      We're no longer doing compile checks on the X11 extensions which we include. · d1ff4225
      Sam Lantinga authored
      (Resolves bug #114)
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401310
      d1ff4225
    • Ryan C. Gordon's avatar
      Changed references to XFree86 to Xext to match change in directory structure. · dc8dc16f
      Ryan C. Gordon authored
        Reference Bugzilla #116.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401309
      dc8dc16f
    • Sam Lantinga's avatar
      Reverted in favor of this one: · 1310074b
      Sam Lantinga authored
      https://bugzilla.libsdl.org/attachment.cgi?id=3
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401308
      1310074b
    • Sam Lantinga's avatar
      XFree86 directory renamed to Xext · 47251659
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401307
      47251659
    • Sam Lantinga's avatar
      Date: Tue, 05 Jul 2005 21:43:26 +1000 · f437ac41
      Sam Lantinga authored
      From: Sean Childs
      Subject: [SDL] Compiling SDL 1.2.8 with the free Borland compiler
      
      When compiling SDL 1.2.8 with the free Borland compiler, I received this
      error (there is a similar error that occurs in
      src\video\windx5\sdl_dx5events.c):
      Error E2342 ..\..\src\video\windib\sdl_dibevents.c 189: Type mismatch in
      parameter 'lpPrevWndFunc' (wanted 'int (__stdcall *)()', got 'long
      (__stdcall *)(void *,unsigned int,unsigned int,long)') in function
      DIB_HandleMessage
      
      
      I checked the MSDN library at:
      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/
      windowsuserinterface/windowing/windowprocedures/windowprocedurereference/wind
      owprocedurefunctions/callwindowproc.asp
      
      and it had this to say:
      If STRICT is not defined, the lpPrevWndFunc parameter has the data type
      FARPROC. The FARPROC type is declared as follows:
      
      int (FAR WINAPI * FARPROC) ()
      
      In C, the FARPROC declaration indicates a callback function that has an
      unspecified parameter list. In C++, however, the empty parameter list in
      the declaration indicates that a function has no parameters. This subtle
      distinction can break careless code. Following is one way to handle this
      situation:
      
      #ifdef STRICT
         WNDPROC MyWindowProcedure
      #else
         FARPROC MyWindowProcedure
      #endif
      ...
         lResult = CallWindowProc(MyWindowProcedure, ...)
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401306
      f437ac41
    • Sam Lantinga's avatar
      Date: Sat, 14 Jan 2006 15:16:01 -0500 · dd7245a1
      Sam Lantinga authored
      From: Andrew Fuller
      Subject: [SDL] [PATCH] ML-8866 PS2->USB converter
      
      This converter seems to go by several names --  Super Dual Box, Dual
      USB Joypad, and who knows what else.  Also branded differently with
      different colour cases, etc.  But it seems to all be the same
      internals.  It is a common converter used for StepMania, with several
      posts Googleable trying to make it work in Linux.  I got mine
      yesterday and wanted to play stepmania, so I went ahead and made a
      crude patch for libsdl to split this baby into two logical joysticks.
      
      A couple notes about the patch:
      
      This patch works well for two dance mats hooked up and playing
      stepmania, however the mapping of the other buttons may be off.  I
      have no joystick which uses all the buttons the converter reports, so
      I have no way of testing them.
      
      The name I used 0925:8866 which is the USB ID, and what SDLjoytest-GL
      reported is the name, even though lsusb shows Wisegroup, Ltd MP-8866
      Dual USB Joypad, and the existing virtual joystick mapping uses the
      Wisegroup... name.  Not sure why the discrepency.
      
      I'm not subscribed to this mailing list, so please CC me on any
      comments to this.
      
      -Andrew
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401305
      dd7245a1
    • Sam Lantinga's avatar
      Oops · da27ab07
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401304
      da27ab07
  3. 30 Jan, 2006 6 commits
    • Ryan C. Gordon's avatar
      Removed some old Mac OS X cruft. · d56868ac
      Ryan C. Gordon authored
      Fixes Bugzilla #64.
      
      --ryan.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401303
      d56868ac
    • Ryan C. Gordon's avatar
      Corrects dynamic X11 code on Tru64 systems. · a8366ab9
      Ryan C. Gordon authored
      Fixes Bugzilla #87.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401302
      a8366ab9
    • Sam Lantinga's avatar
      This library is now available under the LGPL 2.1, the major change of which · 1432f548
      Sam Lantinga authored
      is allowing linking with a shared object to be considered sufficient for
      complying with section 6 of the LGPL.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401301
      1432f548
    • Sam Lantinga's avatar
      *** empty log message *** · 3030ebfa
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401300
      3030ebfa
    • Sam Lantinga's avatar
      Fixed crash: · 4218be92
      Sam Lantinga authored
      #include <SDL.h>
      
      int main(int argc, char** argv)
      {
              SDL_Init(SDL_INIT_EVERYTHING);
              SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN);
              SDL_ShowCursor(SDL_DISABLE);
              SDL_Delay(1000);
              SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN | SDL_OPENGL);
              SDL_Quit();
              printf("Everything okay\n");
      }
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401299
      4218be92
    • Sam Lantinga's avatar
      Date: Sun, 6 Mar 2005 17:06:20 +0100 · 039ea901
      Sam Lantinga authored
      From: Per Inge Mathisen
      Subject: [SDL] Fullscreen refresh on win32
      
      Windows has a terrible default for fullscreen 3D apps of 60mhz refresh
      rate. This can be fixed  by the user by going into his driver's
      control panel and forcing the refresh rate higher. However, this not a
      very user friendly way about it, and in any case SDL contains no code
      that could figure out this that condition has afflicted the user.
      
      So the question is, could SDL fix this for the user? It is possible
      under Windows to request a higher refresh rate. The danger is of
      course that if the user has an old monitor, and you request a too high
      refresh rate, the monitor could be damaged. However, I believe there
      might be a way around that: Check before switching what refresh rate
      the user's desktop runs in, and if our fullscreen dimensions are equal
      or less than those of the desktop, use the higher refresh rate of 60
      and the desktop rate.
      
      Since most users run their desktops in the same or higher resolution
      something sane, this should fix this problem for most users.
      
      Thoughts?
      
      An alternative is to add an SDL_GL_GetAttribute(SDL_GL_REFRESH_RATE)
      option so that programs can bitch at their users at their own
      convenience.
      
        - Per
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401298
      039ea901
  4. 29 Jan, 2006 15 commits
    • Sam Lantinga's avatar
      Date: Fri, 18 Feb 2005 20:49:35 +0200 (EET) · d2ded39e
      Sam Lantinga authored
      From: ville
      Subject: [SDL] Changing, at least some, anonymous enums to named enums.
      
      Howdy,
      
      Could, some if not all, enums be named rather than being anonymous enums?
      I ran into troubles with the enum describing event types in SDL_events.h.
      The problem is that an anonymous enum cannot be used in C++ templates like
      so:
      
      enum { C };
      
      template< typename T >
      void
      f( T ) {
      }
      
      
      f( C );
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401297
      d2ded39e
    • Sam Lantinga's avatar
      Added some useful command line arguments for testing · ed6a111b
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401296
      ed6a111b
    • Sam Lantinga's avatar
      Fixed palette bug on non-WinCE · 838b8023
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401295
      838b8023
    • Sam Lantinga's avatar
      Only save the window position if we're in windowed mode · e051a43d
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401294
      e051a43d
    • Sam Lantinga's avatar
      The event code was fine, and calculated the SDL_windowX/Y correctly. · b8df2868
      Sam Lantinga authored
      What we really needed to do was avoid doing client rect adjustment on
      zoomed windows. :)
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401293
      b8df2868
    • Sam Lantinga's avatar
      Date: Fri, 18 Feb 2005 07:58:00 +0200 · b49e57ab
      Sam Lantinga authored
      From: "Mike Gorchak"
      Subject: [SDL] [PATCH] QNX6 and not only QNX6 fixes
      
      1) Update SDL.qpg.in for the QNX 6.3.
      4) video/photon/SDL_phyuv.c - fixed bug with swapped U and V planes, using
      YV12 mode with radeon cards.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401292
      b49e57ab
    • Sam Lantinga's avatar
      Cleaned up the app registration stuff a bit · f708868d
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401291
      f708868d
    • Sam Lantinga's avatar
      Date: Tue, 15 Feb 2005 21:28:48 +0900 (JST) · 31d40ce8
      Sam Lantinga authored
      From: "Michael Leonhard"
      Subject: [SDL] resize bug on Win32 and patch
      
      This is my first post to this mailing list.  In this email I will detail a
      bug in the behavior of resizable SDL windows on Win32.  Then I will
      explain the solution and provide a patch.
      
      Symptoms:
      
      Under Windows, an SDL display created with the SDL_RESIZABLE flag exhibits
      quirky behavior when being maximized.  The window is resized to the proper
      size, but it is shifted upwards about half the height of the title bar.
      Similarly, a window whose origin is above the top of the screen will
      spontaneously move its upper-left origin upon being resized.  After two
      such resize-induced moves, the title bar will be entirely off the top edge
      of the screen.  Subsequently, when the mouse is clicked and released on
      the window border, the window will shrink its height spontaneously.  This
      height shrinkage occurs even if the user did not resize the border.
      
      To observe this curious situation, please invoke:
      SDL-1.2.8/test/testwm.exe -resize
      
      Cause:
      
      A pair of integers, SDL_windowX and SDL_windowY, are defined in
      video/wincommon/SDL_sysevents.c.  They are used by the DirectX video
      driver and the DIB video driver:
      video/windx5/SDL_dx5video.c
      video/windib/SDL_dibvideo.c
      As I understand the source code, the primary use of these variables is to
      create a rectangle that represents the surface area in CLIENT SPACE.
      Client space refers to a coordinate system that originates at the upper
      left corner of a Win32 Window's drawable area.  This is just inside the
      window border and title bar.  This client space rectangle, called bounds,
      is subsequently converted to screen space with a call to
      AdjustWindowRectEx.  The problem is found in SDL's handling of the
      WM_WINDOWPOSCHANGED message.  According to MSDN,
      
        "The WM_WINDOWPOSCHANGED message is sent to a window whose
         size, position, or place in the Z order has changed as a
         result of a call to the SetWindowPos function or another
         window-management function."
      
      I have confirmed that this message is indeed being sent to the SDL window
      when the mouse is clicked on the window border, even if the window border
      is not dragged.
      
      In video/wincommon/SDL_sysevents.c, on line 464, in response to the
      WM_WINDOWPOSCHANGED message, the (potentially) new client rectangle is
      obtained.  This rectangle is translated into screen coordinates and THEN
      assigned to the SDL_windowX and Y variables.  Thus screen coordinates are
      being assigned to client coordinate variables.  Once this is understood,
      the solution is apparent:  assign SDL_windowX and Y before translating the
      rectangle to screen coordinates.  This is accomplished by the following
      patch.
      
      -Mike_L
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401290
      31d40ce8
    • Sam Lantinga's avatar
      Use the executable directory, not the current directory, for stdio output files · 16857d62
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401289
      16857d62
    • Sam Lantinga's avatar
      *** empty log message *** · baaae734
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401288
      baaae734
    • Sam Lantinga's avatar
      Report both absolute and relative motion · dd2c4cfc
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401287
      dd2c4cfc
    • Sam Lantinga's avatar
      Date: Fri, 14 Jan 2005 21:52:46 +0100 · c6c791fe
      Sam Lantinga authored
      From: "SkunkGuru"
      Subject: [SDL] Repeated mousemotion event on notebook
      
      it seems that every ~500ms something fires a mousemotion event,
      but with the same x and y position.
      I tryed with both directx and windib video driver.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401286
      c6c791fe
    • Sam Lantinga's avatar
      Date: Sat, 15 Jan 2005 02:01:51 +0000 (UTC) · ee646e66
      Sam Lantinga authored
      From: jimrandomh
      Subject: [SDL] Re: Modifier keys pressed during initialization stick
      
      I wrote a simple test program which initializes SDL, prints the SDL
      version number, then prints any keydown and keyup events with their
      modifiers. (Source code below). Compilation was done using Visual
      Studio 6, release mode.
      
      My test sequence was:
      Start a command prompt. Type the name of the test program.
      shift down
      enter down (program starts)
      Wait for window to appear
      enter up
      shift up
      spacebar down
      spacebar up
      
      Under Windows 98, the output was correct:
      SDL 1.2.8
      left shift down
      shift-return down
      shift-return up
      left shift up
      space down
      space up
      
      Under Windows 2000 and under Windows XP, the output was:
      SDL 1.2.8
      shift-space down
      shift-space up
      
      Since shift was not held at the time space was pressed, this is
      incorrect. Similar results were observed with launching in different
      ways (including double-clicking in Windows Explorer), so it does not
      depend on the launching terminal.
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401285
      ee646e66
    • Sam Lantinga's avatar
      *** empty log message *** · c7602580
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401284
      c7602580
    • Sam Lantinga's avatar
      Re-query the SDL_WINDOWID each time we initialize the video · 82eea8b8
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401283
      82eea8b8
  5. 28 Jan, 2006 1 commit
  6. 27 Jan, 2006 5 commits
    • Sam Lantinga's avatar
      Avoid warnings in Visual C++ 2005 · 3441f3ea
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401281
      3441f3ea
    • Sam Lantinga's avatar
      *** empty log message *** · dd364f45
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401280
      dd364f45
    • Sam Lantinga's avatar
      Wacky! :) · 4d80aa48
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401279
      4d80aa48
    • Sam Lantinga's avatar
      Fixed to match the docs · 33f5989f
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401278
      33f5989f
    • Sam Lantinga's avatar
      Date: Mon, 23 Feb 2004 23:29:20 -0500 · 8cf42f6c
      Sam Lantinga authored
      From: "Brian Kropf"
      Subject: [SDL] Windx5
      
      I was wondering if I could suggest a change for (at least) the mingw/msys
      build.  Every time I do the ./configure, make on a fresh download it crashes
      when it tries to find directx.h for the audio portion of the build
      
      In file included from SDL_dx5audio.c:37:
      SDL_dx5audio.h:31:21: directx.h: No such file or directory
      In file included from SDL_dx5audio.c:37:
      
      I usually copy the directx.h from the video/windx5 into the audio/windx5 and
      things go smoothly after that; just thought I'd suggest it for making future
      builds go smoothly. ;)
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401277
      8cf42f6c