Commit Graph

1893 Commits

Author SHA1 Message Date
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
Sam Lantinga
9022fb1002 Updated svn repository
--HG--
branch : SDL-1.2
2007-01-23 04:47:11 +00:00
Patrice Mandin
6b269b555d Add error message if not using SDL_LoadObject
--HG--
branch : SDL-1.2
2007-01-14 14:24:36 +00:00
Patrice Mandin
8fabeb8807 Disable TurboVeille screensaver if present
--HG--
branch : SDL-1.2
2007-01-11 20:33:13 +00:00
Patrice Mandin
87a00ae0f0 Alpha sort the test list, add missing ones, remove removed ones
--HG--
branch : SDL-1.2
2007-01-04 19:52:12 +00:00
Ryan C. Gordon
70335c291e Fix of HBITMAP leak in GAPI driver by Dmitry Yakimov.
Fixes Bugzilla #371.

--HG--
branch : SDL-1.2
2006-12-11 19:51:19 +00:00
Ryan C. Gordon
5400681714 Merge r2921:2922 from SDL trunk to 1.2 branch: mingw alloca.h workaround.
--HG--
branch : SDL-1.2
2006-12-01 20:26:06 +00:00
Ryan C. Gordon
101070f1a5 Wrapped some macro params in parentheses for alloca wrappers.
Thansk, Suzuki Masahiro.

--HG--
branch : SDL-1.2
2006-11-29 10:30:05 +00:00
Ryan C. Gordon
2eee707b6e From: Gabriel Gambetta
To: SDL Mailing List <sdl@libsdl.org>
Date: Fri, 17 Nov 2006 00:39:29 -0200
Subject: [SDL] Alpha blending bug - fixed?

It turns out mm5 never got the correct value. This failed :

	[...]
	"movd %1, %%mm5\n\t"
	: : "m" (amask), "m" (sf->Ashift) );


mm5 got 0xFF000018 instead of 0x00000018. However I did this :

	Uint32 ashift = sf->Ashift;
	[...]
	"movd %1, %%mm5\n\t"
	: : "m" (amask), "m" (ashift) );

and everything worked fine.

The only thing I could find out was that ashift is 32-bit aligned but
sf->Ashift isn't:

printf("ashift     %8X [%d]\n", &ashift, (int)(&ashift) % 4);
printf("sf->Ashift %8X [%d]\n", &sf->Ashift, (int)(&sf->Ashift) % 4);

ashift     at BFF0E0C4 [0]
sf->Ashift at 08AFB9CD [1]

Could this be the problem? If it is, the fix is extremely trivial.
Should I submit a patch?

	--Gabriel

--HG--
branch : SDL-1.2
2006-11-21 23:17:00 +00:00
Ryan C. Gordon
97dc67f3ec Added sdl.pc to svn:ignore.
--HG--
branch : SDL-1.2
2006-11-21 20:49:35 +00:00
Patrice Mandin
fabcb1b068 Check video driver mouse cursor pointers before using them
--HG--
branch : SDL-1.2
2006-11-19 14:07:32 +00:00
Ryan C. Gordon
889885e2d2 X11 backend: tell app that mouse focus has been obtained when grabbing the
input. This allows us to enable DGA mode, even when the system cursor was
 outside of the window when the grab was initiated.

Fixes Bugzilla #299, which has a more detailed explanation of the issue.

--HG--
branch : SDL-1.2
2006-11-13 03:58:22 +00:00
Ryan C. Gordon
28122b9e63 Block fruity channel values in dspaudio, or the fragment size won't be a
power of 2.

--HG--
branch : SDL-1.2
2006-11-12 21:23:57 +00:00
Ryan C. Gordon
9a8627cf0a BeOS loadso code now reports failure correctly from SDL_LoadObject(), and uses
the system to provide text for SDL_SetError().

--HG--
branch : SDL-1.2
2006-11-07 15:17:31 +00:00
Ryan C. Gordon
c089c5e489 Man, who let this moron near printf()?! :)
--HG--
branch : SDL-1.2
2006-11-07 15:00:43 +00:00
Ryan C. Gordon
1bcada6557 Added a test program for loadso subsystem.
--HG--
branch : SDL-1.2
2006-11-07 14:31:25 +00:00
Ryan C. Gordon
d8fb6277e9 Chopped out some code to match changes in revision #2793 to fix build...but
I think this just breaks fullscreen YUV rendering.

--HG--
branch : SDL-1.2
2006-11-07 14:06:25 +00:00
Ryan C. Gordon
0218eb70b7 Merged r2896:2897 from trunk (use dummy joystick if subsystem enabled and
no platform-specific driver exists).

Fixes Bugzilla #356 (and maybe Bugzilla #350).

--HG--
branch : SDL-1.2
2006-11-03 21:52:54 +00:00
Ryan C. Gordon
5071475bf1 A few more AmigaOS things.
--HG--
branch : SDL-1.2
2006-10-29 04:08:50 +00:00
Ryan C. Gordon
52d7186a38 Removed broken AmigaOS support.
Fixes Bugzilla #337.

--HG--
branch : SDL-1.2
2006-10-29 03:58:27 +00:00
Ryan C. Gordon
48c9a3d1a2 Added some newer binaries to svn:ignore.
--HG--
branch : SDL-1.2
2006-10-29 03:44:25 +00:00
Ryan C. Gordon
73f0f91145 joyGetPosEx() was using the wrong variable for specifying a device; this is
corrected now. (thanks, Ondrej!)

Fixes Bugzilla #267.

--HG--
branch : SDL-1.2
2006-10-29 03:37:24 +00:00
Ryan C. Gordon
c2899bd3ed Closing minor memory leak in XME code.
--HG--
branch : SDL-1.2
2006-10-29 02:46:42 +00:00
Ryan C. Gordon
106664a5ec Fix for buffer overflow in audio code, when feeding a device that needs
resampling.

Fixes Bugzilla #298.

--HG--
branch : SDL-1.2
2006-10-27 20:18:24 +00:00
Patrice Mandin
b133717f80 Also save/restore fpu register in vbl interrupt
--HG--
branch : SDL-1.2
2006-10-21 18:53:33 +00:00
Sam Lantinga
269d54fdff backport from 1.3
--HG--
branch : SDL-1.2
2006-10-01 02:30:03 +00:00
Ryan C. Gordon
12ac461082 1.2 backport: Replaced strncmp for SDL_AUDIODRIVER test with strcasecmp.
Fixes Bugzilla #334.

--HG--
branch : SDL-1.2
2006-10-01 02:07:09 +00:00
Sam Lantinga
63f70fc5be Fixed bug #292
I might be on crack here.

It looks like SDL_ConvertMono() in src/audio/SDL_audiocvt.c adds the left and
right channels of a stereo stream together, and clamps the new mono channel if
it would overflow.

Shouldn't it be dividing by 2 to average the two sample points instead of
clamping? Otherwise the mono sample point's volume doubles in the conversion.
This would also make the conversion faster, as it replaces two branches per
sample frame with a bitwise shift.

--ryan.

--HG--
branch : SDL-1.2
2006-09-24 15:45:37 +00:00
Sam Lantinga
c5aad8550a Fixed formatting
--HG--
branch : SDL-1.2
2006-09-24 15:36:37 +00:00
Sam Lantinga
26d3de141a Fixed bug #286
Date: Thu, 9 Feb 2006 17:06:51 +0300
From: "Oleg K  [BeSman]"
Subject: BeOS SDL patches

Hello all. My name is Oleg K. [BeSman], Im a BeOS user from Russia.This mail
contain a BeOs-specific patches to SDL (implementation of InputGrabbing and
mouse_relative mode). See the source in attached file for details.

--HG--
branch : SDL-1.2
2006-09-24 15:31:42 +00:00