Commit Graph

820 Commits

Author SHA1 Message Date
Sam Lantinga
9d287a8dc0 Update the version on the SDL shared library. Use SDL stub library for tests. 2004-02-14 06:04:41 +00:00
Sam Lantinga
ca2dfb384b Fixed typo in DirectFB driver (thanks Frank!) 2004-02-13 18:39:01 +00:00
Sam Lantinga
94f82d4c27 *** empty log message *** 2004-02-13 18:01:22 +00:00
Sam Lantinga
91639ced44 Date: Fri, 13 Feb 2004 17:03:16 +0100
From: Max Horn
Subject: Modifier key fix

The internal modifier state can get out of sync with reality. To
trigger this, do for example this:
  1) Launch an SDL app
  2) Alt-click on the desktop (this will hide the SDL app).
  3) Bring the SDL app back to the front
  4) SDL will still think alt is pressed (and as such will treat left
clicks like middle clicks). If you press and release alt, it'll be fine
again.

The attached patch cures this by rechecking the modifier state whenever
we process an event.
2004-02-13 17:57:16 +00:00
Sam Lantinga
be7b5ff3cb *** empty log message *** 2004-02-13 06:42:17 +00:00
Sam Lantinga
5a5ad9c13d Use sigaction instead of signal to preserve handler flags (thanks Matthew!) 2004-02-12 16:29:24 +00:00
Sam Lantinga
e3e858e237 Added support for remote XVideo (thanks Frederic!) 2004-02-12 16:05:30 +00:00
Sam Lantinga
df6ca16bde *** empty log message *** 2004-02-12 06:21:13 +00:00
Sam Lantinga
b3da7130ef Don't use hardware overlay by default (seems much faster this way) 2004-02-11 16:50:54 +00:00
Sam Lantinga
de583dca47 *** empty log message *** 2004-02-11 16:40:17 +00:00
Sam Lantinga
ca5bd19099 Date: Tue, 13 Jan 2004 19:25:37 +0300
From: Dmitry Yakimov
Subject: [SDL] [PATCH] SDL bug patch

  Let me introduce 2 fixes to SDL.

  1. Preventing great slowdown on fast machines while hardware
     flipping (it's obviously bug).
  2. Setting up 85 Hz of monitor if supported. The reason is that
     Win98 by default sets lowest frequency 60 Hz.
     And we can't set up maximum frequency because some users can have
     wrong monitor drivers.
     This is important for shareware and commercial programs.
2004-02-11 16:10:16 +00:00
Sam Lantinga
6a861cc7d9 Simplify code and clean up Valgrind warning 2004-02-11 07:26:29 +00:00
Sam Lantinga
6c019d967f Fixed static linking on MacOS X (thanks Max!) 2004-02-11 07:09:11 +00:00
Sam Lantinga
4e7e86bfb8 Updated projects with cpuinfo API 2004-02-10 17:34:38 +00:00
Sam Lantinga
f62a1eafb3 Date: Wed, 04 Feb 2004 13:51:56 +0100
From: Jens Leuschner
Subject: Small patch for libSDL

In newer XFree86 releases in the German keyboard the "AltGr"-Key no
longer produces the keysym "Mode_switch", instead it produces
"ISO_Level3_Shift".
I have created a small patch against SDL-1.2.6 (which cleanly applies to
the current CVS-SDL too) that makes SDL recognize ISO_Level3_Shift as
AltGR key.
2004-02-10 15:39:15 +00:00
Sam Lantinga
5d51c784d3 *** empty log message *** 2004-02-10 15:31:35 +00:00
Sam Lantinga
4c4d46200c Updated SDL HTML documentation 2004-02-10 15:15:40 +00:00
Sam Lantinga
8c3c688f81 *** empty log message *** 2004-02-08 22:21:30 +00:00
Patrice Mandin
c1c213d8b0 Video modes must be sorted by Y size, for SDL_GetVideoMode() to operate properly 2004-02-07 11:25:56 +00:00
Patrice Mandin
e7981b8d02 When commiting code, cleanup before doing it 2004-02-06 22:53:32 +00:00
Patrice Mandin
08f8a081ea Bugfixes: some info about current framebuffer overwritten by some default values, and screen width must be multiple of 16 pixels to work correctly 2004-02-06 22:41:00 +00:00
Sam Lantinga
150e133b96 *** empty log message *** 2004-01-31 21:23:15 +00:00
Patrice Mandin
906135fd30 Milan and Hades Atari clones do not have an Atari video chip 2004-01-31 08:57:03 +00:00
Sam Lantinga
4e8eff824f *** empty log message *** 2004-01-31 06:49:18 +00:00
Sam Lantinga
7c53445375 Check for altivec assembly support before trying to use it. :) 2004-01-29 16:15:12 +00:00
Sam Lantinga
71e0c931bf Updated for the latest version of automake 2004-01-29 16:14:09 +00:00
Sam Lantinga
9aa13dea7e Altivec detection on non-MacOS X systems 2004-01-29 05:22:23 +00:00
Sam Lantinga
650b2062dc Added an exports target so I can make the exports all at once. :) 2004-01-29 04:39:08 +00:00
Sam Lantinga
dd9d5de67a *** empty log message *** 2004-01-29 04:35:51 +00:00
Sam Lantinga
ea456458a3 Date: Wed, 28 Jan 2004 20:25:54 +0100
From: Thomas Jarosch
Subject: Re: [SDL] DSPF_RBG15 in src/video/directfb/SDL_DirectFB_video.c

In my local DirectFB 0.1.19 copy, DSPF_RGB15 is an alias for DSPF_ARGB1555.
They seem to have it removed in DirectFB CVS.

As DSPF_RGB15 was only an alias, the attached patch
can safely be applied to SDL and won't brake older DirectFB versions.
2004-01-28 22:01:02 +00:00
Sam Lantinga
f3bb5e27d9 Date: Wed, 28 Jan 2004 02:37:04 +0100
From: Max Horn
Subject: Small libtool patch (framework related)

here is a small patch for ltmain.sh. It corrects a problems with the
libSDL.la file, which prevented applications using a version of libtool
w/o framework support (read: all currently released libtool version) to
not being able to link with SDL anymore. I also notified the libtool
maintainers, as the same problem exists in libtool CVS.
2004-01-28 01:57:34 +00:00
Sam Lantinga
b08f9aa6bc Updated Project Builder projects 2004-01-26 06:33:27 +00:00
Sam Lantinga
4e8ab456b0 Date: Sat, 24 Jan 2004 14:49:58 +0100
From: Stephane Marchesin
Subject: Re: [SDL] 3DNow! detection on a P4 system

Well... I found another bug : 3dnow was detected on P2/P3 cpus. So I
took one more look at the code and found a mistake in
CPU_getCPUIDFeaturesExt :
The condition for having extended cpuinfo is that when we query extended
cpuinfo we get a result >=  0x80000001. So we must exit if eax < 0x80000001.
The attached patch does that.
2004-01-24 15:55:00 +00:00
Sam Lantinga
972de8363f *** empty log message *** 2004-01-24 05:57:56 +00:00
Sam Lantinga
1ac8626346 Fixed bugs in CPU feature detection and added extended feature detection 2004-01-24 05:47:19 +00:00
Sam Lantinga
d5ec6433eb *** empty log message *** 2004-01-17 20:37:06 +00:00
Sam Lantinga
98d9ab4217 *** empty log message *** 2004-01-13 15:14:27 +00:00
Sam Lantinga
ec862e1c9a *** empty log message *** 2004-01-11 21:43:13 +00:00
Sam Lantinga
451b9a2b71 *** empty log message *** 2004-01-08 16:01:07 +00:00
Patrice Mandin
217b8da114 Add to temporary includes path to find src/video/windx5/directx.h if we build SDL in a different directory 2004-01-07 18:24:06 +00:00
Sam Lantinga
cc5d6cbff3 Date: Tue, 6 Jan 2004 21:54:02 +0100
From: Max Horn
Subject: Auto hide mouse & other changes

the attached bug adds the auto-hide-mouse feature I talked about
earlier. Turned out it was a lot simpler than I thought, simply by
using our existing code :-). I actually spent much more time on fixing
various bugs in the code and correcting (IMO) some behavior (although,
due to the lack of real specs for SDL, it's probably arguable what
'correct' means...).

* adds auto (un)hiding of mouse depending on whether it is in- or
outside the game window
* computation of course coordinates is correct now (it often and
reproducible got out of sync with the old code, since the NSEvent
window was in some cases *not* our window anymore, so locationInWindow
returned wrong results)
* added a method which at any time returns the mouse coords, relative
to our window
* fixed handling of lost/gain input/mouse/app focus "events"
2004-01-07 15:01:51 +00:00
Sam Lantinga
b01a5e306e Date: Tue, 6 Jan 2004 12:42:19 +0100
From: Max Horn
Subject: SDL_HasAltiVec; BUGS file

the attached patch adds SDL_HasAltiVec to SDL CVS. Note that at this
point, this only works on MacOSX (and maybe darwin). I don't know how
to properly add a test for e.g. Linux/PPC at this point. I found an
email which might help in doing so:
http://zebra.fh-weingarten.de/~maxi/html/mplayer-dev-eng/2003-01msg00783.html
However, since I have no way to test on a non-OSX PowerPC system, I am
not comfortable blindly adding such code... I just hope that if
somebody from the Linux/PPC (or FreeBSD/PPC, or whatever) community
notices this, they'll jump up and provide a patch for us ;-)
2004-01-06 17:18:38 +00:00
Sam Lantinga
fb1f8f1b71 *** empty log message *** 2004-01-06 17:16:02 +00:00
Sam Lantinga
0c90c5c2e0 Added support for /dev/joy* on Free/Net/OpenBSD (thanks Christian!) 2004-01-06 04:07:12 +00:00
Sam Lantinga
9abfdc34dd Fixed playback problems with MacOSX 10.1 2004-01-05 12:08:38 +00:00
Sam Lantinga
ee4e716e49 Date: Mon, 5 Jan 2004 00:09:36 +0100
From: Anders_F_Bj?rklund
Subject: [SDL] Dynamic OpenGL lib support for Mac

Here's a patch that adds LoadLibrary and GetProcAddress
to the Carbon macintosh driver (for Mac OS 9 and Mac OS X):
http://www.algonet.se/~afb/SDL-1.2.6-macdynamicgl.patch
It just calls the corresponding function from SDL_loadso.

It also fixes one Mac bug in SDL_loadso.c, that made it fail
always when loading a library, and fixes the screen update
after receiving an update event - which caused the OpenGL
context to be overwritten by a blank window by UpdateRect...
2004-01-05 01:34:34 +00:00
Sam Lantinga
5004d1c95d Date: Sun, 4 Jan 2004 23:48:19 +0100
From: Max Horn
Subject: Re: Again Audio CD patch

Am 04.01.2004 um 22:38 schrieb Sam Lantinga:

>
> Okay, I fixed the buffering problems by simply using a 4 second buffer
> instead of a 1 second buffer.  However, using your code I can't play an
> entire CD - the playback stops after the first song.
>
Found the problem: FSReadFork returns eofErr when the file is finished.
However, we check its return value for errors, and if anything but
noErr occurs, the reader thread aborts its current iteration. That is
bad, because it aborts before it can ever set the flag which tells that
the file is over (also, any remaining data which FSRead did return is
lost - so you'd not hear about to 4 seconds from the end of the file.

Furthermore, the computed data size was 8 bytes to high (I forgot to
account for the fact that the size of an (A)IFF chunk always contains
the chunk header & size fields, too). This is enough to make it work.
However, the end condition is rather fragile, so I tuned some other
things to be pessimistic (check for <= 0 instead of == 0, when eofErr
is encountered enforce mReadFilePosition == mFileLength). You never
know...

The attached patch fixes the issue for me.
2004-01-05 00:57:51 +00:00
Sam Lantinga
6a7c426236 Fix buffer underrun problems on slow iBooks 2004-01-04 21:32:47 +00:00
Sam Lantinga
a0db91cab5 Fixed track detection on MacOS X 10.1 2004-01-04 18:50:26 +00:00
Sam Lantinga
44c336b863 *** empty log message *** 2004-01-04 17:04:54 +00:00