Commit Graph

1922 Commits

Author SHA1 Message Date
Ryan C. Gordon
49b8d7cf26 Print keysym with key events.
--HG--
branch : SDL-1.2
2007-06-13 04:13:21 +00:00
Patrice Mandin
9d5fef7bea Avoid switch to supervisor mode in SDL_GetTicks, by updating system counter from vbl interrupt
--HG--
branch : SDL-1.2
2007-06-09 19:52:05 +00:00
Patrice Mandin
3689963eb8 Set supervisor as volatile as it is modified from an interrupt
--HG--
branch : SDL-1.2
2007-06-08 21:44:40 +00:00
Ryan C. Gordon
09d57b679e C fallback for SDL_revcpy() was off by one. Thanks to Emmanuel Jeandel for
the catch.

  Fixes Bugzilla #424.

--HG--
branch : SDL-1.2
2007-06-04 11:43:47 +00:00
Ryan C. Gordon
b75d969532 Better handling of multiple queued Cocoa mouse events. Thanks to Christian
Walther for the patch.

   Fixes Bugzilla #353.

--HG--
branch : SDL-1.2
2007-06-04 11:22:23 +00:00
Ryan C. Gordon
1f62de060a Patch to allow DirectFB target to report a correct screen size.
Fixes Bugzilla #399.

--HG--
branch : SDL-1.2
2007-06-04 11:15:58 +00:00
Ryan C. Gordon
e9b986d468 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
2007-06-04 11:06:48 +00:00
Ryan C. Gordon
815b8cc112 Minor macrom comment cleanup.
--HG--
branch : SDL-1.2
2007-06-03 19:21:07 +00:00
Ryan C. Gordon
0d8d425d07 Minor tab fix in mac drawsprocket code.
--HG--
branch : SDL-1.2
2007-06-03 19:19:16 +00:00
Ryan C. Gordon
9bb95f8c9e 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
2007-06-03 06:52:58 +00:00
Ryan C. Gordon
11eee89627 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
2007-06-03 06:52:06 +00:00
Ryan C. Gordon
3b60f99754 Mac OS X joystick calibration code should start with device-specified bounds.
Fixes Bugzilla #344.

--HG--
branch : SDL-1.2
2007-05-29 12:01:07 +00:00
Patrice Mandin
75e0c3a473 Allow creation of window bigger than visible size
--HG--
branch : SDL-1.2
2007-05-27 08:53:48 +00:00
Patrice Mandin
c19ad50e18 Oops
--HG--
branch : SDL-1.2
2007-05-26 20:12:58 +00:00
Patrice Mandin
df7d4b383c Simply resize existing window
--HG--
branch : SDL-1.2
2007-05-26 20:09:56 +00:00
Patrice Mandin
c960d362f9 GEM has a window manager, of course
--HG--
branch : SDL-1.2
2007-05-26 19:44:37 +00:00
Ryan C. Gordon
4386f56cdf 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
2007-05-22 22:15:54 +00:00
Ryan C. Gordon
67c6247b61 Committed PulseAudio driver. Thanks, Stephan!
--HG--
branch : SDL-1.2
2007-05-13 23:12:46 +00:00
Ryan C. Gordon
1808e1408e Removing .gdbinit from test directory.
--HG--
branch : SDL-1.2
2007-04-17 09:09:48 +00:00
Ryan C. Gordon
cb4f51b63c 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
2007-04-17 08:28:19 +00:00
Ryan C. Gordon
9d11e54d7d 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
2007-04-06 20:30:41 +00:00
Ryan C. Gordon
0b050368d5 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
2007-04-04 10:34:42 +00:00
Ryan C. Gordon
906812d153 Crap, put this patch in the wrong place.
THIS fixes Bugzilla #403.   :/

--HG--
branch : SDL-1.2
2007-04-04 10:30:07 +00:00
Ryan C. Gordon
0a40e6659c 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
2007-04-04 10:28:14 +00:00
Ryan C. Gordon
e865281b0e Const correctness patch for SDL_MapRGB and SDL_MapRGBA.
Fixes Bugzilla #421.

--HG--
branch : SDL-1.2
2007-04-04 09:40:40 +00:00
Ryan C. Gordon
0dbf763582 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
2007-04-04 09:32:29 +00:00
Ryan C. Gordon
eaf0064f79 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
2007-04-04 09:15:39 +00:00
Ryan C. Gordon
cf243719dd 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
2007-04-01 03:27:45 +00:00
Ryan C. Gordon
22f35aa3cb Adjusted to handle different constness in older versions of iconv.
Fixes Bugzilla #419.

--HG--
branch : SDL-1.2
2007-03-30 20:09:55 +00:00
Ryan C. Gordon
7603e2bb84 Patched to compile on Visual Studio.
--HG--
branch : SDL-1.2
2007-03-30 06:26:28 +00:00
Ryan C. Gordon
3e834e754f Fixed Mac OS X config header when compiling with -Wundef.
--HG--
branch : SDL-1.2
2007-03-28 00:36:35 +00:00
Ryan C. Gordon
b1f62e0e2f 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
2007-03-27 00:37:51 +00:00
Ryan C. Gordon
1ebf48af6f 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
2007-03-18 22:37:10 +00:00
Ryan C. Gordon
b410097e57 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
2007-03-14 01:09:24 +00:00
Ryan C. Gordon
d91b306f5a Removed some debug printf() calls I accidentally added to Subversion.
--HG--
branch : SDL-1.2
2007-02-23 00:37:07 +00:00
Ryan C. Gordon
4a1affc401 Merged r2987:2988 from trunk/SDL: buggy Sidewinder ID added to linux joysticks.
--HG--
branch : SDL-1.2
2007-02-20 22:57:28 +00:00
Ryan C. Gordon
9d23c1b561 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
2007-02-20 21:05:12 +00:00
Ryan C. Gordon
8a9a3f1522 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
2007-02-16 04:56:17 +00:00
Ryan C. Gordon
c51512e418 Minor const correctness patch to SDL_iconv.
--HG--
branch : SDL-1.2
2007-02-16 03:50:42 +00:00
Ryan C. Gordon
331bafa250 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
2007-02-15 23:50:45 +00:00
Ryan C. Gordon
3fccbec353 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
2007-02-15 11:06:22 +00:00
Ryan C. Gordon
513f346016 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
2007-02-14 10:40:24 +00:00
Ryan C. Gordon
c8660b0b6f 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
2007-02-14 10:23:23 +00:00
Ryan C. Gordon
c501766ce7 Corrected wrong SDK path in build-scripts/fatbuild.sh.
Fixes Bugzilla #377.

--HG--
branch : SDL-1.2
2007-02-13 09:58:04 +00:00
Ryan C. Gordon
6c32aad487 Free all the created cursors in test/testcursor.c.
--HG--
branch : SDL-1.2
2007-02-13 09:20:37 +00:00
Ryan C. Gordon
f3082c85ab Digital Mars has stdint.h, so use the header on Windows with that compiler.
Fixes Bugzilla #376.

--HG--
branch : SDL-1.2
2007-02-12 11:45:18 +00:00
Ryan C. Gordon
bf87c79809 Handle source data alignment correctly in Blit32to32SurfaceAlphaAltivec().
Fixes Bugzilla #279.

--HG--
branch : SDL-1.2
2007-02-12 10:52:10 +00:00
Ryan C. Gordon
586c0038c1 Patched to compile on BeOS and old, old GCC releases.
--HG--
branch : SDL-1.2
2007-02-05 06:44:51 +00:00
Ryan C. Gordon
31ccb7a081 Actually, this is dumb, just simplify this for now.
(But what if this finds the wrong symbol? We really should make this a
   ./configure test and only do one dlsym or the other depending on the
   platform...)

Reference Bugzilla #354.

--ryan.

--HG--
branch : SDL-1.2
2007-02-03 08:17:12 +00:00
Ryan C. Gordon
ecb6de37d9 Moved otherwise-unused underscore-prepending code in dlopen backend into an
#ifdef.

Fixes Bugzilla #354.

--HG--
branch : SDL-1.2
2007-02-03 08:11:45 +00:00