Commit Graph

11015 Commits

Author SHA1 Message Date
Sam Lantinga
988ff74920 Updated config.guess and config.sub 2009-03-04 09:35:32 +00:00
Sam Lantinga
1bc362b160 Updated libtool from version 1.5.22 to 2.2.6a, so it works on current QNX 2009-03-04 08:57:30 +00:00
Sam Lantinga
7c23ebb7e1 Mac OS X and iPhoneOS have the full math library 2009-03-03 09:48:00 +00:00
Sam Lantinga
96c916c759 Date: Mon, 2 Mar 2009 16:27:42 +0200
From: "Mike Gorchak"
Subject: About QNX support in SDL 1.3

Right now I'm working on QNX SDL 1.3 drivers implementation and looks like a
lot of code must be completely reworked. But I'm ready for it :) Also I want
to add QNX Graphics Framework SDL driver, which is fullscreen graphics
framework, with support of hardware accelerated OpenGL ES implementations.
This Graphics Framework (called GF in QNX) could also use QNX Photon (window
manager GUI) as window manager.

In the attachment initial patch for QNX support in SDL 1.3
2009-03-03 04:21:51 +00:00
Sam Lantinga
31ca492b29 Removed unicows dependency, at least for now... 2009-02-27 09:51:55 +00:00
Sam Lantinga
1e48145122 Missing API function 2009-02-27 09:39:39 +00:00
Edgar Simo
22426af602 More verbosity and error checking. 2009-02-21 18:03:22 +00:00
Edgar Simo
2d0c76a026 Fixed haptic subsystem on linux 2.6.28 by lowering the EV_IsJoystick check (seems like some stuff was changed). Shouldn't break anything with earlier versions. Might need to be more robust if false positives show up. 2009-02-21 18:02:55 +00:00
Sam Lantinga
bcaf46aa36 indent 2009-02-19 06:49:59 +00:00
Sam Lantinga
8c01144b7f Implemented X11 maximized state control 2009-02-19 06:48:25 +00:00
Sam Lantinga
acb3ff50e3 Use the default arrow cursor until we implement the cursor API 2009-02-19 04:41:09 +00:00
Sam Lantinga
370ce67850 Fixed bug using SDL_WINDOWPOS_CENTERED with SDL_SetWindowPosition() 2009-02-19 04:15:04 +00:00
Sam Lantinga
9695d7f91c Added missing files 2009-02-19 04:03:05 +00:00
Darren Alton
d3abcab957 NDS compiles again, but may not yet work. Sprite support has been removed for the time being while it is re-worked. 2009-02-18 00:33:31 +00:00
Sam Lantinga
a59d71fd7e Fixed bug #684
Reworked Pierre's patch a little bit, which added SDL_WaitEventTimeout()
2009-02-17 05:59:40 +00:00
Sam Lantinga
34ec22eedd indent 2009-02-17 05:57:54 +00:00
Sam Lantinga
17a7c7045f Fixed bug #681
Description From  Philipp   2009-01-16 20:50:01   (-) [reply]

The File test/README from the svn says this:

    testgl        A very simple example of using OpenGL with SDL
    testgl2        Improved version of testgl

It is actually exchanged.

testgl.c is the improved version right now and testgl2.c the simple one.
2009-02-17 05:44:49 +00:00
Sam Lantinga
41cfcacafc Date: Thu, 27 Dec 2007 07:38:25 +0000
From: John Bartholomew
Subject: [SDL] SDL Semaphore implementation broken on Windows?
Hi,

Over the past couple of days, I've been battling with SDL, SDL_Mixer and SMPEG to try to find an audio hang bug.  I believe I've found the problem, which I think is a race condition inside SDL's semaphore implementation (at least the Windows implementation).  The semaphore code uses Windows' built in semaphore functions, but it also maintains a separate count value.  This count value is updated with bare increment and decrement operations in SemPost and SemWaitTimeout - no locking primitives to protect them.

In tracking down the apparent audio bug, I found that at some point a semaphore's count value was being decremented to -1, which is clearly not a valid value for it to take.

I'm still not certain exactly what sequence of operations is occuring for this to happen, but I believe that overall it's a race condition between a thread calling SemPost (which increments the count) and the thread on the other end calling SemWait (which decrements it).

I will try to make a test case to verify this, but I'm not sure if I'll be able to   (threading errors being difficult to reproduce even in the best    circumstances).

However, assuming this is the cause of my problems, there is a very
simple fix:
Windows provides InterlockedIncrement() and InterlockedDecrement()
functions to perform increments and decrements which are guaranteed to be atomic.  So the fix is in thread/win32/SDL_syssem.c: replace occurrences of --sem->count with InterlockedDecrement(&sem->count); and replace occurrences of ++sem->count with InterlockedIncrement(&sem->count);

This is using SDL v1.2.12, built with VC++ 2008 Express, running on a
Core 2 duo processor.
2009-02-17 05:39:18 +00:00
Sam Lantinga
2d957ea3af Fixed bug #633
Description From  Michael Stone   2008-09-25 19:27:29   (-) [reply]

To determine whether a pid is occupied with the kill(pid, 0) idiom, you have to
test

#include <signal.h>
#include <errno.h>
kill(pid, 0) < 0 && errno == ESRCH

not just

#include <signal.h>
kill(pid, 0) < 0

otherwise you get incorrect results when pid is running as a different user
(causing kill(pid, 0) to return -1 + EPERM).

src/audio/alsa/SDL_alsa_audio.c is certainly affected by this bug in both
1.2.13 and 1.3-trunk. It probably occurs in other places as well.
2009-02-17 05:17:51 +00:00
Sam Lantinga
e6a40c7de4 Fixed bug #537
Description From  esigra   2008-01-07 16:20:21   (-) [reply]

I try to get a clean compile for a project using SDL. But I get warnings
from SDL headers when I use -Wold-style-cast. This is especially bad
because I plan to build the software with -Werror=old-style-cast when we
have switched over to GCC 4.2, which has that option.

But this problem can be fixed in the SDL headers. I checked out the SVN
version and made some patches. See the attached patch.
2009-02-17 04:57:39 +00:00
Sam Lantinga
5360d4d180 Fixed destination of XCopyArea() 2009-02-15 06:12:52 +00:00
Sam Lantinga
4e38974403 Added reminder for shaped windows 2009-02-14 15:56:26 +00:00
Sam Lantinga
5ebf6fd4ba Suggestion from the mailing list 2009-02-14 15:53:52 +00:00
Sam Lantinga
0524f9b916 Fixed off by one error in line drawing code 2009-02-12 06:01:54 +00:00
Sam Lantinga
a29abef54f We need to figure out whether we should handle events on foreign windows 2009-02-09 06:45:03 +00:00
Sam Lantinga
33ba78ff59 More of the same 2009-02-09 06:42:38 +00:00
Sam Lantinga
5dcf7511db Implemented Win32 version of the native window test 2009-02-09 06:41:49 +00:00
Sam Lantinga
8cb6792622 Whoops, missed a file 2009-02-09 06:28:45 +00:00
Sam Lantinga
5cdfe31db1 Throw a FIXME in there, we'll need to take care of this later. 2009-02-09 06:15:06 +00:00
Sam Lantinga
e141340a20 Added test program for SDL_CreateWindowFrom()
Make sure OpenGL library is loaded before working with OpenGL windows,
even those created with SDL_CreateWindowFrom()
2009-02-09 05:32:12 +00:00
Sam Lantinga
6878317fa0 Oh, Polyline() uses a pen, not a brush. Doh! :) 2009-02-08 15:35:06 +00:00
Sam Lantinga
b11ed7c9c5 indent 2009-02-07 18:03:46 +00:00
Sam Lantinga
c1d386b7fe Fixed alpha blending textures with the GDI renderer 2009-02-07 17:56:08 +00:00
Sam Lantinga
3a142d8a52 When creating a software texture, synchronize the surface with the texture.
When creating a texture from a surface, synchronize the texture with the surface.
2009-01-30 06:40:16 +00:00
Sam Lantinga
ea6f7b8f2d indent 2009-01-30 06:38:44 +00:00
Sam Lantinga
5d8a4b577f 2009-01-29 13:25:08 +00:00
Sam Lantinga
63dc0e4806 Fixed Altivec blitters for PPC 2009-01-25 05:14:29 +00:00
Sam Lantinga
b2cd73b4ad More Mac OS X 10.3.9 fixes 2009-01-19 15:58:57 +00:00
Sam Lantinga
874db0663d Fixed compilation on Mac OS X 10.3.9 2009-01-19 15:15:03 +00:00
Sam Lantinga
e5150da328 Updated for older versions of subversion 2009-01-19 07:35:52 +00:00
Sam Lantinga
7ed3b5d46e Fix recommended by Eddy L O Jansson 2009-01-19 03:28:23 +00:00
Edgar Simo
bbcab32cb1 Some more safety around the SDL_HelperWindow stuff to avoid double creations. 2009-01-18 17:00:02 +00:00
Bob Pendleton
d3dee2dd2b Changes to hopefully handle the creation of a colormap for 8 bit PseudoColor visuals in X11 2009-01-15 21:35:42 +00:00
Sam Lantinga
18767374ad Unfortunately, adding the file means that every commit marks this file as
modified, even with the svn:ignore property set.  *sigh*
2009-01-14 15:03:44 +00:00
Sam Lantinga
daab1740da Added a dummy revision to fix IDE builds 2009-01-14 15:00:22 +00:00
Sam Lantinga
bdbd0a16d6 Fixed OpenGL state issue reported by Dmytro Bogovych 2009-01-14 06:53:03 +00:00
Sam Lantinga
765fb4319c indent 2009-01-14 04:25:32 +00:00
Couriersud
966de9afa8 Fix fullscreen crash with DirectFB <= 1.2.0 2009-01-13 23:27:08 +00:00
Couriersud
745416da26 Fixed MakeSubSurface compiling issue for DirectFB <= 1.2.0 2009-01-13 22:59:02 +00:00
Couriersud
155e70d709 Added DFB_VERSION_ATLEAST macro
First attempt at replacing MakeSubSurface for pre 1.2.0 ==> Scaling not yet working
2009-01-13 21:17:38 +00:00