Commit Graph

1231 Commits

Author SHA1 Message Date
Sam Lantinga
1d95e86391 Fix for bug #240
Christian Walther contributed Cocoa cursor code.
2006-06-24 17:36:55 +00:00
Sam Lantinga
38e7b9ce94 Fixed bug #258
Account for the menu height in AdjustWindowRectEx()
2006-06-24 04:30:01 +00:00
Sam Lantinga
afd236a42a Fixed bug #255
Fixed memory leaks in the windib driver.
2006-06-24 03:41:14 +00:00
Sam Lantinga
94d74c1271 Fixed bug #260
Fixed SDL_GL_SWAP_CONTROL on Windows, and the query on Linux
2006-06-24 01:59:43 +00:00
Ryan C. Gordon
dc1d31ffc9 Swizzle ALSA channels for 5.1 output to match DirectSound and CoreAudio.
Untested, but potentially fixes Bugzilla #110.
2006-06-23 08:35:48 +00:00
Sam Lantinga
1f2b2f370c Fixed bug #69
Hopefully this takes care of most of the audio dropouts in Windows
2006-06-23 08:15:47 +00:00
Sam Lantinga
a9a3b84a56 Fixed bug #147
Only enable Unicode key events if Unicode translation is enabled.
2006-06-23 04:27:55 +00:00
Ryan C. Gordon
f496989fdc Minor bit of sanity-checking debug info in dynamic X11 code. 2006-06-23 02:16:49 +00:00
Sam Lantinga
a272763e42 Renamed, per Mike's comment on bug #157 2006-06-21 08:26:05 +00:00
Sam Lantinga
f508424971 Renamed, per Mike's comment on bug #157 2006-06-21 08:25:28 +00:00
Sam Lantinga
8cba9367ac Fixed bug #157
[patch tweaked to handle older nasm, which doesn't support :function syntax]

------- Comment #5 From Mike Frysinger 2006-05-22 01:24 [reply] -------
Created an attachment (id=132) [edit]
libsdl-hidden-nasm.patch

here's the patch i posted here:
http://www.libsdl.org/pipermail/sdl/2006-March/073618.html

this will hide the symbols dynamically if the build nasm/yasm supports the
hidden stuff ... in other words, this patch should be safe with both older and
new versions of nasm/yasm
2006-06-21 07:57:34 +00:00
Sam Lantinga
0ef7c6c8f3 Date: Fri, 9 Jun 2006 11:35:23 +0300
From: "Janne Junnila"
Subject: [SDL] SDL_SetGamma bug

You can't set the the gamma 'brighter' than 1.0. There's a patch attached.
2006-06-20 06:50:42 +00:00
Sam Lantinga
9a48decd81 Fixed bug #251 2006-06-20 05:55:23 +00:00
Sam Lantinga
df51b8dd73 I think this fixes bug #244 2006-06-20 05:35:44 +00:00
Sam Lantinga
fd94b24155 Fixed bug #241 2006-06-20 05:25:04 +00:00
Sam Lantinga
739bed165d Fixed bug #232
------- Comment #2 From Matthias Geissert  2006-05-24 07:54  [reply] -------
See http://dri.sourceforge.net/doc/DRIuserguide.html, section 11.5. There is
written that you need to use RTLD_GLOBAL, since, otherwise, nested open of
dynamic libraries doesn't work. However, This is necassary in this case, since
libGL opens the hardware-specific driver/library. I hope this helps you.
2006-06-20 03:52:41 +00:00
Patrice Mandin
226b6cdcee Fix mouse cursor change 2006-06-14 18:57:58 +00:00
Sam Lantinga
61cc023f8a Moved DirectInput joystick code to 1.3 branch 2006-05-21 17:26:40 +00:00
Sam Lantinga
c0441f5cf0 Closed bug #74
Added DirectInput joystick code, contributed by Glenn Maynard.

This fixes a problem with the Windows Multimedia joystick driver
not showing all 6 axes on a GameCube controller converter, which
was donated by Jacob Kolding.
2006-05-21 16:47:41 +00:00
Ryan C. Gordon
9333377053 Removed unused variable with undefined type. Fixes Bugzilla #234. 2006-05-21 02:50:05 +00:00
Ryan C. Gordon
eb3b613dd0 Try to keep SDL keysyms sane regardless of keyboard layout in windib target.
Fixes Bugzilla #164.
2006-05-18 03:24:10 +00:00
Ryan C. Gordon
1890f79cea Make sure sem_wait didn't return early with EINTR. Fixes Bugzilla #231. 2006-05-17 23:42:48 +00:00
Sam Lantinga
0e9999cdab Fixed thread callback calling conventions, updated OS/2 DLL name to SDL12.dll 2006-05-17 18:57:04 +00:00
Sam Lantinga
b03120aa73 Fixed uninitialized variable warnings 2006-05-17 15:08:46 +00:00
Sam Lantinga
a13c34cfef Updated RPM spec file with License keyword 2006-05-17 06:09:27 +00:00
Sam Lantinga
79ad24c33b Patch from Ryan to fix compiler warnings 2006-05-17 04:01:53 +00:00
Sam Lantinga
757bed87ac Use the correct parameter for GLX_VISUAL_CAVEAT_EXT 2006-05-16 16:25:22 +00:00
Sam Lantinga
b51447224f Fixed compiling GS YUV conversion code 2006-05-16 06:53:27 +00:00
Sam Lantinga
131b151fdc Date: Mon, 15 May 2006 17:18:34 +0300
From: Vassilis Virvilis
Subject: Re: [SDL] SDL + fbcon = weird colors (resolved)

> I am getting weird colors in 16/32 bpp in an VIA custom
> board with savagefb and in qemu (cirrusfb).

Ok looks that nowadays if you follow compiler warnings closely
all bugs will be resolved by you. This one was that a non void
function (do_mmap) was not returning anything.
I also silenced a warning since I was in janitor mode.
2006-05-16 03:58:08 +00:00
Patrice Mandin
a4fae77b3b Add a reminder to fix current->w,current->h 2006-05-14 09:55:22 +00:00
Patrice Mandin
7c58460af7 Add missing include file 2006-05-12 16:25:04 +00:00
Sam Lantinga
579795df41 Fixed signed/unsigned issues 2006-05-12 04:21:19 +00:00
Sam Lantinga
5905a7b56a Date: Thu, 11 May 2006 19:08:05 -0400
From: Mike Frysinger
Subject: [SDL] [patch] remove limits.h hack from linux joystick code

there is a small hack in the current linux joystick code to work around broken
cross-compilers by including more than one limits.h ... at the very least,
this is not arm-specific by any means

i'm of the opinion that libsdl should not contain such things ... people
should be fixing their cross-compilers, not bloating other's source trees

patch attached to clean the cruft
-mike
2006-05-11 23:32:11 +00:00
Patrice Mandin
9e20b86d93 Forgot to declare volatile stuff also in c file 2006-05-11 21:14:05 +00:00
Sam Lantinga
5400b91864 Fixed some bugs in string handling
Cleaned up error message code, UTF-8 is used instead of UCS2
Added detection for MPEG Layer 3 audio for more informative errors.
2006-05-11 21:03:23 +00:00
Sam Lantinga
2c1976a764 Fixed MacOS Classic build 2006-05-11 06:06:21 +00:00
Sam Lantinga
4e69d001e0 Fixed bug #208
So, here's a patch with a reimplementation of QZ_SetIcon() that does what I
described above. I apologize for the delay, I've been quite busy in the last
few days.

It appears to work here on 10.4.5 PPC in the limited testing that I've done;
I'll try to test it on 10.3.9 and 10.2.8 as well, but that might take another
week or so. Please test on i386.

Regarding alpha channels, per-surface alpha, and color keys, the same semantics
as for regular blits to an RGB surface should apply (for the final icon
composited onto the dock), unless I made a mistake - except in one pathological
case: if the icon surface has an alpha channel, its SDL_SRCALPHA flag is not
set (i.e. it has been explicitly cleared, since it's on by default for RGBA
surfaces), and it has a color key, plus an explicit mask was specified (instead
of the one autogenerated from the colorkey), then the color-keyed areas appear
black instead of transparent. I found no elegant way of fixing this, was too
lazy to implement the inelegant one, and decided that it isn't worth the effort
(but if someone disagrees, I can do it).
2006-05-11 03:45:55 +00:00
Sam Lantinga
b8c61a73fd Fixed bug #226
Just to make it compile with old CodeWarrior.
2006-05-11 03:21:54 +00:00
Sam Lantinga
90f1c175ac Fixed bug #225
Making the old code limp along, for Carbon builds.
2006-05-11 03:19:03 +00:00
Sam Lantinga
a90e3bb90b Date: Wed, 10 May 2006 17:43:21 -0700
From: Eric Wing
Subject: Re: Updated tarball

Attached are additional cleanups to SDLMain.m for the files in src/
main/macosx. It looks like somebody already cleaned up most of the
issues. There is one about the class interfaces being empty which
didn't look easy to fix in a meaningful way so I left them.
2006-05-11 03:08:39 +00:00
Sam Lantinga
86c3375829 Need to use __MACOSX__ for the Mac OS X platform. 2006-05-10 07:42:02 +00:00
Sam Lantinga
69c495a139 Fixed bug #222
SDL_macgl loads CFM library (OpenGLLibrary) even in Mach-O,
when it should be loading the OpenGL.framework code instead
2006-05-10 07:16:38 +00:00
Sam Lantinga
5994d8e129 Xcode has trouble compiling different files with the same name for two architectures 2006-05-10 06:12:45 +00:00
Sam Lantinga
b1fed51d75 Removed unused variable 2006-05-10 06:07:47 +00:00
Sam Lantinga
78d2138776 Date: Tue, 9 May 2006 23:01:49 -0400
From: Mike Frysinger
Subject: [SDL] [patch] fall back to using MAP_PRIVATE with mmap() in fbcon dri

trying to use MAP_SHARED with mmap() on uClinux (aka non-mmu) hosts nowadays
will simply fail since the kernel disallows it ... falling back to using
MAP_PRIVATE on these hosts is acceptable ... as such, ive attached a patch
for the fbcon driver that will fall back to using MAP_PRIVATE if mmap() with
MAP_SHARED failed

going by a grep of MAP_SHARED, the only other drivers that utilize this flag
are video/wscons, video/ps2gs, and sound/dmaaudio ... i dont think these
would appear on a non-mmu host so the patch i wrote is restricted to just
SDL_fbvideo.c ...
-mike
2006-05-10 04:05:46 +00:00
Sam Lantinga
6f865c24cc Fixed bug #220
The AltiVec blitters don't compile, since they require __VEC__ to be enabled in
order for the compiler to understand "vector" and friends (i.e. do AltiVec)
But you don't want to turn AltiVec on globally, since then the code would only
run on a G4 (there are already runtime tests, before using the AltiVec
variants)

The solution here is to enable AltiVec locally, for the actual AltiVec code.
2006-05-09 15:09:47 +00:00
Sam Lantinga
9ef89950da Fixed bug #137
If SDL_OpenAudio() is passed zero for the desired format
fields, the following environment variables will be used
to fill them in:
	SDL_AUDIO_FREQUENCY
	SDL_AUDIO_FORMAT
	SDL_AUDIO_CHANNELS
	SDL_AUDIO_SAMPLES
If an environment variable is not specified, it will be set
to a reasonable default value.
2006-05-09 08:52:54 +00:00
Sam Lantinga
165c228d8e Date: Mon, 8 May 2006 14:19:30 -0700
From: Bob Ippolito
Subject: SDL trunk (r2346) and Mac OS X

As for all the Carbon warnings.. the two File Manager ones should be
easy to get rid of, the QuickDraw ones won't be so easy since that
requires actual refactoring.

PBUnmountVol -> FSEjectVolumeSync
FSClose -> FSCloseFork
2006-05-09 07:52:04 +00:00
Sam Lantinga
be8109d7bc More compile fixes for systems without the DPMS extension 2006-05-09 07:50:28 +00:00
Sam Lantinga
320f0deeaf Fixed build errors on systems without the DPMS extension 2006-05-09 07:45:12 +00:00