Commit graph

1926 commits

Author SHA1 Message Date
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
Ryan C. Gordon
87f0994d7a Mac OS X joystick support: don't ignore kHIDUsage_GD_MultiAxisController
devices, since they are probably joysticks, or joystick-like things.

See 3Dconnexion's SpaceNavigator for an example of such a device:
   http://www.3dconnexion.com/products/3a1d.php

Thanks to Laurence Passmore for the fix.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402284
2007-03-18 22:37:10 +00:00
Ryan C. Gordon
9e136b5ec7 Linux fbcon: don't include asm/page.h if we know getpagesize() exists, since
we don't need it, and doing so will hit #error lines on some CPU archs.

Thanks to Mike Frysinger for the heads up.

  Fixes Bugzilla #414.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402282
2007-03-14 01:09:24 +00:00
Ryan C. Gordon
214b58fbad Removed some debug printf() calls I accidentally added to Subversion.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402281
2007-02-23 00:37:07 +00:00
Ryan C. Gordon
27002e9323 Merged r2987:2988 from trunk/SDL: buggy Sidewinder ID added to linux joysticks.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402280
2007-02-20 22:57:28 +00:00
Ryan C. Gordon
b3c3a9ad47 Need to set DLSCL_ADMINISTRATIVE coop level in directfb driver, or YUV overlay
creation will fail in newer DirectFB versions.

   Fixes Bugzilla #394.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402277
2007-02-20 21:05:12 +00:00
Ryan C. Gordon
372defa7ba SDL_SetWindowCaption() on Windows: try to use the unicode
SetWindowText() if it exists in user32.dll, and fallback to converting
to the current codepage (instead of latin1) if not.

  Fixes Bugzilla #365.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402276
2007-02-16 04:56:17 +00:00
Ryan C. Gordon
d969c7e221 Minor const correctness patch to SDL_iconv.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402275
2007-02-16 03:50:42 +00:00
Ryan C. Gordon
8b407756dc Patched fbcon to compile on newer Linux kernels that don't #define PAGE_SIZE,
since a memory page's size may vary on various architectures and kernel
 configurations.

Will use getpagesize() if it exists, the PAGE_SIZE #define from older kernels
 if that doesn't, and #error out if that's not there either...but it's
 probably 4096 in that case. We may revisit this.

   Fixes Bugzilla #392.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402273
2007-02-15 23:50:45 +00:00
Ryan C. Gordon
cb20c837f4 Force chars to unsigned chars in SDL_string.c, so platforms that expect
these to not be negative, when not EOF, work.

   Fixes Bugzilla #338.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402271
2007-02-15 11:06:22 +00:00
Ryan C. Gordon
0855a63e16 Removed the contents of the BUGS file, as most (all?) of the issues were
either long-since fixed or something that will never get fixed.

The file now points people to Bugzilla and the mailing list.

   Fixes Bugzilla #352.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402269
2007-02-14 10:40:24 +00:00
Ryan C. Gordon
b360c13391 Quartz code should use F13, F14, and F15 keys instead of PrintScreen,
ScrollLock, and Pause, since that's what's on the standard Apple keyboards
 (minus the laptops, which have neither set). Ideally we'll find a better way
 to distinguish this...the keys being replaced would be correct on a USB
 keyboard for Windows. Sigh.

   Fixes Bugzilla #301.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402267
2007-02-14 10:23:23 +00:00
Ryan C. Gordon
64941faf12 Corrected wrong SDK path in build-scripts/fatbuild.sh.
Fixes Bugzilla #377.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402265
2007-02-13 09:58:04 +00:00
Ryan C. Gordon
ebb3fc7478 Free all the created cursors in test/testcursor.c.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402263
2007-02-13 09:20:37 +00:00
Ryan C. Gordon
9a1cd1510c Digital Mars has stdint.h, so use the header on Windows with that compiler.
Fixes Bugzilla #376.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402261
2007-02-12 11:45:18 +00:00