Commit graph

1940 commits

Author SHA1 Message Date
Ryan C. Gordon
6fb707a2a2 Whoops, fixed previous VC6 support patch.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402373
2007-06-21 18:48:13 +00:00
Ryan C. Gordon
be8f728aaa Fixes for Visual C++ 6.0 with and without the Processor Pack.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402371
2007-06-21 18:20:59 +00:00
Ryan C. Gordon
24ea7c9a31 Fixed assembler command line for older yasm releases and documented nasm
switches.

   Fixes Bugzilla #440.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402366
2007-06-16 05:51:51 +00:00
Ryan C. Gordon
1358a199de Fixed win32 event name list (WM_MOUSELAST was listed twice, one should be
WM_MOUSEWHEEL).

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402364
2007-06-16 05:24:55 +00:00
Ryan C. Gordon
f9e2e9d635 Added support for WM_XBUTTON to the windib driver, to support more mouse
buttons.

   Fixes Bugzilla #311.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402363
2007-06-16 05:10:47 +00:00
Ryan C. Gordon
bacb61113e Removed some more EPOC stuff I missed.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402361
2007-06-15 15:52:04 +00:00
Ryan C. Gordon
52001505d8 Removed EPOC port...it's being replaced by an updated Symbian port with the
original author's blessing.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402360
2007-06-15 15:42:15 +00:00
Ryan C. Gordon
92435d924a Make sure to check for glu.h before enabling glX support. We don't
directly need GLU, but SDL_opengl.h tries to include it, and it shows that
 the workstation is misconfigured or incompletely configured if just this
 one header is missing.

   Fixes Bugzilla #336.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402358
2007-06-15 12:26:29 +00:00
Sam Lantinga
65296278a3 Added patch note for subversion revision 3076
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402357
2007-06-15 11:43:14 +00:00
Ryan C. Gordon
1e4e388318 Make sure __inline__ isn't defined before #defining it, since some compilers
(like Sun Studio) have this as a predefined macro.

   Fixes Bugzilla #434.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402354
2007-06-15 07:19:05 +00:00
Ryan C. Gordon
4c8d994db9 Clean up have-initialized resources in some failing edge cases.
Maybe fixes Bugzilla #426.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402353
2007-06-15 06:57:31 +00:00
Sam Lantinga
43816f4915 Added docs for revision 3073 - Ryan, feel free to do this yourself, if you want.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402352
2007-06-15 06:49:14 +00:00
Ryan C. Gordon
51bddc2dc9 Support for Gamma Ramps on Mac OS Classic in both the macrom and macdsp video
targets, thanks to Gregory Smith!

   Fixes Bugzilla #431.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402351
2007-06-15 06:29:52 +00:00
Sam Lantinga
2a55f0a351 Don't install the extra SDL config headers or SDL_copying.h
Fixes Bugzilla #361.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402349
2007-06-15 05:41:22 +00:00
Sam Lantinga
22b2aca10e Updated docs with bug fixes in subversion.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402348
2007-06-15 05:21:33 +00:00
Ryan C. Gordon
2af6c8e18c Prevent arts audio target from crashing/hanging SDL if the audio hardware
isn't available.

   Fixes Bugzilla #372.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402346
2007-06-14 14:09:25 +00:00
Ryan C. Gordon
3c92462fd1 Actually, this is a better fix...clear the error state once if everything we
need loaded; it's more efficient, and works even if the last unnecessary
 xrandr symbol failed to load. Otherwise, leave the original loadso error, so
 the end user can find out what symbol failed.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402342
2007-06-13 08:00:10 +00:00
Ryan C. Gordon
7bcb619015 Date: Mon, 4 Jun 2007 06:17:59 +0000 (UTC)
From: George Gensure <werkt0@gmail.com>
Subject: [SDL] error removal patch for SDL_x11dyn.c

I found that calling SDL_GetError when an error hasn't necessarily occurred is
still reporting problems from loadso regarding dynamic functions in X11.  I've
added the following to my local copy to avoid revealing the 'many library
lookup' approach adopted by x11dyn.c:

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402341
2007-06-13 07:54:10 +00:00
Ryan C. Gordon
935338957d Print keysym with key events.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402339
2007-06-13 04:13:21 +00:00
Patrice Mandin
32a4452933 Avoid switch to supervisor mode in SDL_GetTicks, by updating system counter from vbl interrupt
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402337
2007-06-09 19:52:05 +00:00
Patrice Mandin
ebf84b70dd Set supervisor as volatile as it is modified from an interrupt
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402335
2007-06-08 21:44:40 +00:00
Ryan C. Gordon
2d2ab89a1d C fallback for SDL_revcpy() was off by one. Thanks to Emmanuel Jeandel for
the catch.

  Fixes Bugzilla #424.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402333
2007-06-04 11:43:47 +00:00
Ryan C. Gordon
6b5b916b0d Better handling of multiple queued Cocoa mouse events. Thanks to Christian
Walther for the patch.

   Fixes Bugzilla #353.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402332
2007-06-04 11:22:23 +00:00
Ryan C. Gordon
88ccf13d13 Patch to allow DirectFB target to report a correct screen size.
Fixes Bugzilla #399.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402330
2007-06-04 11:15:58 +00:00
Ryan C. Gordon
f1107d9179 Check if yasm supports a nasm-specific syntax we use (it doesn't in 0.5.0,
which is still common in Linux distros, and does in 0.6.0). Disable it if we
 don't, attempting to fallback to using nasm. Thanks to Mike Frysinger for the
 patch.

   Fixes Bugzilla #393.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402328
2007-06-04 11:06:48 +00:00
Ryan C. Gordon
a0395a876c Minor macrom comment cleanup.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402327
2007-06-03 19:21:07 +00:00
Ryan C. Gordon
10b93c9102 Minor tab fix in mac drawsprocket code.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402326
2007-06-03 19:19:16 +00:00
Ryan C. Gordon
24f42ead23 Patched to compile on Mac OS X (not that you should necessarily be using this
on Mac OS X, but still) ...

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402324
2007-06-03 06:52:58 +00:00
Ryan C. Gordon
e883b665af Use system memset/memcpy on Mac OS X, since Apple hand-tunes these for each
processor they ship (and thus, it's likely to beat our code on PowerPC and
 Intel and whatever variants or new archs show up later).

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402323
2007-06-03 06:52:06 +00:00
Ryan C. Gordon
27d3e5f271 Mac OS X joystick calibration code should start with device-specified bounds.
Fixes Bugzilla #344.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402320
2007-05-29 12:01:07 +00:00
Patrice Mandin
576d64cb8d Allow creation of window bigger than visible size
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402318
2007-05-27 08:53:48 +00:00
Patrice Mandin
d3b8d75c1b Oops
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402317
2007-05-26 20:12:58 +00:00
Patrice Mandin
536d584388 Simply resize existing window
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402315
2007-05-26 20:09:56 +00:00
Patrice Mandin
3e7810109a GEM has a window manager, of course
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402313
2007-05-26 19:44:37 +00:00
Ryan C. Gordon
4fbac0bf45 Check correct glX extension name for swap_control, but it doesn't look like
we ever actually look up the symbol...that's probably a bug.  :/

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402312
2007-05-22 22:15:54 +00:00
Ryan C. Gordon
a144a3d025 Committed PulseAudio driver. Thanks, Stephan!
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402310
2007-05-13 23:12:46 +00:00
Ryan C. Gordon
d070d0ddfd Removing .gdbinit from test directory.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402307
2007-04-17 09:09:48 +00:00
Ryan C. Gordon
b17574196b Let Windows OpenGL users use SDL_GL_SWAP_CONTROL even if WGL_ARB_pixel_format
isn't available...this looks like it got tucked into here with the other
 attributes, which are wrapped in a pixel_format availability check.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402306
2007-04-17 08:28:19 +00:00
Ryan C. Gordon
0ea790c9ae Let app set SDL_VIDEO_ALLOW_SCREENSAVER environment variable to override SDL's
attempt to disable screen savers. Works for Quartz (Mac OS X) and X11.

Need a formal API for this in 1.3, still.

  Fixes Bugzilla #415.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402305
2007-04-06 20:30:41 +00:00
Ryan C. Gordon
b120a012d2 There are several subsystems that need IOKit linked in on Mac OS X, so handle
cases where one or more of them are disabled.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402302
2007-04-04 10:34:42 +00:00
Ryan C. Gordon
2dc670fd22 Crap, put this patch in the wrong place.
THIS fixes Bugzilla #403.   :/

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402301
2007-04-04 10:30:07 +00:00
Ryan C. Gordon
a198a2d80f Don't compile the joystick code if --disable-joystick is specified at
./configure time, and define SDL_JOYSTICK_DUMMY if the subsystem is wanted
 but there aren't any drivers available for the platform.

 Fixes Bugzilla #403.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402300
2007-04-04 10:28:14 +00:00
Ryan C. Gordon
3ce0d260d0 Const correctness patch for SDL_MapRGB and SDL_MapRGBA.
Fixes Bugzilla #421.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402298
2007-04-04 09:40:40 +00:00
Ryan C. Gordon
3a156ea6be BlitRGBtoRGBPixelAlphaMMX() is putting the wrong value into a register.
Thanks to Alex Volkov for following up on this.

   Fixes Bugzilla #390.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402296
2007-04-04 09:32:29 +00:00
Ryan C. Gordon
31327331d9 Fixed buggy SDL_VIDEO_X11_MOUSEACCEL behaviour...correctly free buffer, and
only call XChangePointerControl() if we have valid arguments.

  Fixes Bugzilla #417.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402295
2007-04-04 09:15:39 +00:00
Ryan C. Gordon
749c11c06b Date: Sat, 31 Mar 2007 16:39:52 +0200
From: Bert Wesarg
To: sdl@lists.libsdl.org
Subject: [SDL] [PATCH] sdl-config.in needs ${libdir}

Hello,

after the patch for Bug #321, sdl-config.in needs the libdir variable. and
 there is a hardcoded 'lib' in SDL.spec.in too.

Bert Wesarg

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402293
2007-04-01 03:27:45 +00:00
Ryan C. Gordon
c6a106ad29 Adjusted to handle different constness in older versions of iconv.
Fixes Bugzilla #419.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402292
2007-03-30 20:09:55 +00:00
Ryan C. Gordon
98838b4428 Patched to compile on Visual Studio.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402290
2007-03-30 06:26:28 +00:00
Ryan C. Gordon
357970bfe2 Fixed Mac OS X config header when compiling with -Wundef.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402288
2007-03-28 00:36:35 +00:00
Ryan C. Gordon
db2fe20ace From: Laurence Passmore
Date: Mon, 26 Mar 2007 23:22:45 +0100
To: "A list for developers using the SDL library. \(includes SDL-announce\)" <sdl@lists.libsdl.org>
Subject: [SDL] SDL_config_macosx.h: MAC_OS_X_VERSION_MIN_REQUIRED

Hi,

I just compiled my SDL application on Mac OS X with -Wundef and it
threw a number of errors. Of note was:

     SDL_config_macosx.h: 34
     warning: "MAC_OS_X_VERSION_MIN_REQUIRED" is not defined

Line 34 is:

     #if ( (MAC_OS_X_VERSION_MIN_REQUIRED >= 1030) || (!defined (__POWERPC__)) )

Now according to this mailing on the Apple developer lists:

     http://lists.apple.com/archives/Xcode-users/2005/May/msg00602.html

that particular #define was removed from the gcc compiler defaults
and AvailabilityMacros.h (/usr/include/AvailabilityMacros.h) should
be pulled in directly instead.

Would someone closer to the Mac OS X version of SDL be willing to
make that change please? Thanks.

Laurence Passmore
Homeworld SDL @ www.homeworldsdl.org

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402286
2007-03-27 00:37:51 +00:00