Commit Graph

1020 Commits

Author SHA1 Message Date
Sam Lantinga
2209d19e4d Instructive comments from Max Horn
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40870
2004-03-04 05:39:17 +00:00
Sam Lantinga
815d80fc5a sed, it's two, two commands in one!
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40869
2004-03-03 06:56:04 +00:00
Ryan C. Gordon
b82c0bc1e9 Force recreation of X11 window if going to or from a SDL_NOFRAME vidmode.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40868
2004-03-02 19:38:55 +00:00
Sam Lantinga
7a82cd6547 Date: Tue, 2 Mar 2004 11:34:54 +0100
From: Bartosz Fenski aka fEnIo
Subject: outdated entry in INSTALL file

I've just found in INSTALL file:

        If you are cross-compiling from Linux to Win32, you should read
        the file README.Win32

But you don't shipped this file with SDL. I've found in CVS logs that
this file has been deleted and this information is now in FAQ.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40867
2004-03-02 13:01:02 +00:00
Sam Lantinga
710da3b0ba Date: Sun, 29 Feb 2004 15:14:22 +0200
From: Martin_Storsj
Subject: Dynamic loading of ALSA

I recently discovered that SDL can dynamically load ESD and aRts, and
made a patch which adds this same functionality to ALSA.

The update for configure.in isn't too good (it should e.g. look for
libasound.so in other directories than /usr/lib), because I'm not too
good at shellscripting and autoconf.

The reason for using dlfcn.h and dlopen instead of SDL_LoadLibrary and
SDL_LoadFunction is that libasound uses versioned symbols, and it is
necessary to load the correct version using dlvsym. This isn't probably
any real portability issue, because ALSA is linux-only.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40866
2004-03-02 12:49:16 +00:00
Sam Lantinga
a58dea0f76 Date: Sun, 29 Feb 2004 20:28:27 +0200
From: Martin_Storsj
Subject: Slight bug in ESD and aRts

When I experimented with the ALSA-patch, I found a slight bug in the
Load{ESD,ARTS}Library-functions. The check of whether a function pointer
was correctly loaded looks like this right now:

*esd_functions[i].func = SDL_LoadFunction(esd_handle,
esd_functions[i].name);
if ( ! esd_functions[i].func )

Isn't that supposed to be ( ! *esd_functions[i].func )?

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40865
2004-03-02 12:45:22 +00:00
Sam Lantinga
64e0d7256e Date: Tue, 2 Mar 2004 08:52:20 +0200
From: "Mike Gorchak"
Subject: Just a misc. fixes

1) I've added a small fix to the .qpg file - SDLqpg.diff. Added autoconf variables like the @SDL_BINARY_AGE@ instead of directly using "...so.7".

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40864
2004-03-02 12:38:27 +00:00
Sam Lantinga
b8e0de8f67 IRIX doesn't have a GL library versioning system
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40863
2004-02-26 20:49:45 +00:00
Sam Lantinga
2de7499a4e Oops, ignore SIGALRM, not 0
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40862
2004-02-26 19:57:37 +00:00
Ryan C. Gordon
a967e79e6b Create a 2D window and then manually focus a different window on your desktop,
call SDL_PumpEvents() so the X11 driver sets its this->hidden->switch_waiting,
then set a fullscreen OpenGL window (which makes the X11 driver tear down and
create a new window instead of just resizing the existing one), poll for
events, and the newly-created window will think it needs to pop back to a
window. Fixed by resetting switch_waiting to zero if X11_CreateWindow() had
to tear down a previous window.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40861
2004-02-26 15:12:51 +00:00
Sam Lantinga
90b89f2616 This works on MacOS X too. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40860
2004-02-26 14:26:07 +00:00
Sam Lantinga
005ace8382 Date: Wed, 25 Feb 2004 06:41:17 -0500
From: "Ryan C. Gordon"
Subject: Re: MacOS X bugs...

This isn't an ideal patch (trying to open a joystick that has previously
been unplugged will report success, but it'll just never give any input,
etc), but it handles the worst case of deadlock in the event subsystem.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40859
2004-02-26 13:45:22 +00:00
Ryan C. Gordon
46397620bd Attempt to get FSAA compiling on all versions of MacOS X.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40858
2004-02-26 08:57:32 +00:00
Sam Lantinga
ab5e55b081 Date: Mon, 23 Feb 2004 19:00:23 +0100
From: "Juergen \"George\" Sawinski"
Subject: Problems compiling libsdl with gcc 3.3

I attached another patch (configure.in.patch) that might resolv issues
for some ppl finding the correct place of libartsc.so.*.
(here, the output of "artsc-config --libs" contains two "-L.*",
therefore the respecting arts_lib_spec contains the wrong path).

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40857
2004-02-24 19:22:22 +00:00
Sam Lantinga
6c967b9343 I noticed MacOSX SDL sets up working directory to parent of executable.
On BeOS is should setup it the same way, but it only does when Tracker
wasn't restarted.

I checked code and it looks like a hack to me :(
It looks for env variable and than comapres it to default when OpenTracker
was started after boot, and wasn't restarted. That's probably ok, for that
exact case. Unfortunetly that variable isn't always like that. For
example, after Tracker crashes and is restarted, env variable most
probably is different (depends on how Tracker was restarted, by what
application, etc... for example: i have launcher application from which i
can restart Tracker, and after that nev variable points to that
application's directory, not Tracker's).

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40856
2004-02-24 18:58:40 +00:00
Sam Lantinga
eeed686a58 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40855
2004-02-24 16:21:19 +00:00
Sam Lantinga
fa3a55a9bc Don't allow video modes larger than the maximum size
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40854
2004-02-24 07:42:19 +00:00
Ryan C. Gordon
fb965d4ea0 Quartz fix:
ut2004 makes a 2D window for the splash screen, which sets the screen
surface's pixels field. Then we tear down that video mode and create a GL
context, and the Quartz target isn't resetting the pixels field to NULL.

When you just create a GL window, the structure is memset'd to zero the
first time through, so unless you hit ut2004's codepath, you won't see the
bug.  :)

Without this patch, quitting a windowed ut2003/ut2004 game makes the OS dump a
warning about a bogus free() to stderr, but it doesn't actually crash. All we
need to do is explicitly initialize the current->pixels field.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40853
2004-02-24 06:53:22 +00:00
Sam Lantinga
0a10de8a22 Doh!
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40852
2004-02-23 15:49:28 +00:00
Sam Lantinga
eb69a6e95a Added an endian detection and byte swapping test program
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40851
2004-02-23 08:03:14 +00:00
Sam Lantinga
17216decbc Added inline byte swapping code for other architectures
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40850
2004-02-23 06:09:21 +00:00
Sam Lantinga
35fe23a353 Avoid using kernel internal headers
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40849
2004-02-23 05:32:52 +00:00
Sam Lantinga
a79d5610c6 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40848
2004-02-21 00:21:06 +00:00
Sam Lantinga
28f51bd31d *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40847
2004-02-20 18:18:20 +00:00
Sam Lantinga
54478fc8ca Fixed a bug in detecting surface mapping changes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40846
2004-02-19 21:13:24 +00:00
Sam Lantinga
5de765a423 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40845
2004-02-18 03:57:13 +00:00
Sam Lantinga
dcd900dacb Updated SDL_opengl.h to include the latest version of glext.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40844
2004-02-17 23:29:52 +00:00
Sam Lantinga
67f01941f2 Load the correct library on Windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40843
2004-02-17 22:04:44 +00:00
Sam Lantinga
dfd199308f *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40842
2004-02-17 22:00:33 +00:00
Sam Lantinga
493c4dacec *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40841
2004-02-17 18:21:46 +00:00
Sam Lantinga
6e5735ed77 Added a test program for dynamically loading OpenGL
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40840
2004-02-17 18:16:49 +00:00
Sam Lantinga
0160ec6888 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40839
2004-02-17 18:01:39 +00:00
Sam Lantinga
294fd41950 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40838
2004-02-17 16:19:29 +00:00
Sam Lantinga
6c5308c03c *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40837
2004-02-17 04:48:16 +00:00
Sam Lantinga
fe9af2df98 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40836
2004-02-17 04:47:25 +00:00
Sam Lantinga
487d8e7852 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40835
2004-02-16 21:15:25 +00:00
Sam Lantinga
db9869de70 Added support for SDL_VIDEO_WINDOW_POS and SDL_VIDEO_CENTERED on Windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40834
2004-02-16 21:09:24 +00:00
Sam Lantinga
09ce89d547 Date: Mon, 16 Feb 2004 19:21:51 +0100
From: Max Horn
Subject: Re: Fix for OSX bug

The problem is that our actual client area is realized as a
subview of the "content view" of the window. That's normal so far. The
odd part is that, while our subview starts out filling it parent 100%,
upon resizes it gets changed to something smaller....

Anyway, here is a revised patch which simply enforces the size of
window_view by calling setFrameSize.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40833
2004-02-16 21:06:10 +00:00
Sam Lantinga
23d5c0d19f Remove automake junk before generating a snapshot
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40832
2004-02-16 04:37:56 +00:00
Sam Lantinga
167c79c05f *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40831
2004-02-16 00:03:31 +00:00
Sam Lantinga
461cccf912 Fixed mouse focus events after resetting video mode on Windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40830
2004-02-15 22:50:28 +00:00
Sam Lantinga
1d18f35f0b Lots of people have contributed cash. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40829
2004-02-15 22:04:46 +00:00
Sam Lantinga
e7ba4dda09 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40828
2004-02-15 21:47:42 +00:00
Sam Lantinga
e846c76112 Showed how to toggle fullscreen mode if the API isn't supported
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40827
2004-02-15 20:31:27 +00:00
Sam Lantinga
5204847367 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40826
2004-02-15 18:45:45 +00:00
Patrice Mandin
4114dc9f1a -lgem must appear after -lldg
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40825
2004-02-15 08:32:25 +00:00
Sam Lantinga
1cafb7e2d4 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40824
2004-02-15 03:42:56 +00:00
Sam Lantinga
1ebb410fc7 Programs should really be handling SIGPIPE themselves
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40823
2004-02-14 23:45:42 +00:00
Sam Lantinga
d3c3bef835 Date: Sat, 14 Feb 2004 14:52:40 +0200
From: "Mike Gorchak"
Subject: Batch of the QNX6 fixes for the SDL

1.  Updated readme.QNX
2.  Fixed crashes during intensive window updating under fast machines (got over 200 rectangles for update).
3.  Fixed double-buffered fullscreen modes, now it works as needed.
4.  Fixed Photon detection algorithm.
5.  Fixed HWSURFACE update function.
6.  Added SDL_PHOTON_FULLSCREEN_REFRESH environment variable support for control refresh rates under Photon.
7.  Added 640x400 fullscreen mode emulation via 640x480 (if videodriver not supports original 640x400 mode of course) shifted by 40 vertical pixels from begin, to center it. It's needed for some old DOS games which ran in doubled 320x200 mode.
8.  Added available video ram amount support.
8.  Added hardware surface allocation/deallocation support if current videomode and videodriver supports it.
9.  Added hardware filling support.
10. Added hardware blits support (simple and colorkeyed).

And I've added to testvidinfo test color-keyed blits benchmark (maybe need to add alpha blits benchmark too ?). Currently Photon not supporting any alpha hardware blittings (all drivers lack of alpha blitting code support, only software alpha blitting exist in photon, which is hundreds times slowest than the SDL's one). So I've not added the alpha support. I suppose new QNX 6.3 will have the hardware alpha support, so when it will be done, I'll add alpha support.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40822
2004-02-14 20:22:21 +00:00
Patrice Mandin
bdc7c65e1a Important crash fix: system vectors for mouse/joystick were not restored
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40821
2004-02-14 10:12:27 +00:00