Commit Graph

2285 Commits

Author SHA1 Message Date
Sam Lantinga
708f4c7ac5 indent 2008-08-31 16:03:55 +00:00
Sam Lantinga
9c4b835e49 Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga
2008-08-27 15:10:03 +00:00
Szymon Wilczek
5d823facd5 Many mouse and tablet linux test file added 2008-08-27 13:37:19 +00:00
Edgar Simo
2ba47a0dc2 Fix for mingw compilation by Alam. 2008-08-26 11:50:37 +00:00
Edgar Simo
fffbd1a1d1 Changed spaces to tabs. 2008-08-26 11:40:37 +00:00
Edgar Simo
3f882c94bb svn:ignore files generated by xcode. 2008-08-26 11:27:30 +00:00
Edgar Simo
a9a0df07e8 Update to xcode to include haptic subsystem stuff by Alam. 2008-08-26 11:18:34 +00:00
Edgar Simo
37efd9020c Missing an include. 2008-08-26 11:17:16 +00:00
Sam Lantinga
a7f2971180 Fixed Visual Studio compilation problems 2008-08-26 07:34:49 +00:00
Sam Lantinga
9c7284cdda Fixed crash when tablet isn't detected properly 2008-08-26 07:34:23 +00:00
Sam Lantinga
3b22c14a63 Dynamically load wintab32.dll 2008-08-26 06:03:48 +00:00
Sam Lantinga
ea7abca18f indent 2008-08-26 05:57:41 +00:00
Sam Lantinga
19d99d4cfc Added Wacom API headers.
FIXME: Dynamically load the Wacom API functions from wintab32.dll
2008-08-26 05:26:28 +00:00
Sam Lantinga
bfe61733da Couriersud fixed bug #603
Using the following sequence

SDL_Init(..:)
SDL_CreateWindow(..., SDL_WINDOW_OPENGL)
SDL_DestroyWindow
SDL_CreateWindow(..., SDL_WINDOW_OPENGL)

SDL will crash in X11_GL_GetVisual. This is due to the fact that
during SDL_DestroyWindow X11_GL_Shutdown was called because the last window
has been closed.

On the next call to SDL_CreateWindow the library is still loaded and only the
memory is reinitialized. Function pointers such as gl_data->glXChooseVisual
will not be reinitialized.

Consequently, SDL will crash due to a NULL pointer access.

The attached patch corrects the behaviour.
2008-08-26 02:47:26 +00:00
Sam Lantinga
38b73b01d9 indent. *sigh* 2008-08-26 02:40:24 +00:00
Sam Lantinga
0cc551f0cd Date: Sun, 20 Jul 2008 22:34:37 +0200
From: Couriersud
Subject: Updated DirectFB driver for SDL1.3

please find attached a patch for an updated directfb driver for SDL1.3.
It does now
- properly supported the new input api.
- send unicode text events
- support directfb windows
- support multiple screens
- support hardware YUV scaling for the first YUV texture created.
- support hardware scaling for textures.
- properly interpret streaming access
- support software opengl if one manages to install the mesa directfb
driver (broken/not broken in mesa svn)

Within bugzilla (http://bugzilla.libsdl.org/show_bug.cgi?id=603) there
is another patch which fixes a crash due to GL context creation.

Kind regards,

couriersud
2008-08-26 02:32:45 +00:00
Sam Lantinga
f74840152b Fixed compile errors for audio resampling. I'm not sure how this got missed... 2008-08-26 02:26:18 +00:00
Edgar Simo
f8a242d31e Merged force_feedback_branch r4042: unbuildability of dummy haptic driver with some configurations. 2008-08-25 20:51:03 +00:00
Szymon Wilczek
92d9759a5f Removed unneccesary code lines. Fixed mousename bug. Added lacking code in mousebutton 2008-08-25 18:02:14 +00:00
Edgar Simo
14e01ef127 Merge of force feedback branch r4039. 2008-08-25 17:34:58 +00:00
Sam Lantinga
a13381a54a Final merge of Google Summer of Code 2008 work...
Audio Ideas - Resampling and Pitch Shifting
by Aaron Wishnick, mentored by Ryan C. Gordon
2008-08-25 15:08:59 +00:00
Edgar Simo
4220687185 Merging another last minute fix from force feedback branch (r4036) 2008-08-25 10:14:21 +00:00
Sam Lantinga
b5ce7cc37d Merged last minute fixes from force feedback branch (r4031, r4033, r4034) 2008-08-25 10:04:06 +00:00
Sam Lantinga
a6fa308712 Final merge of Google Summer of Code 2008 work...
Force Feedback for SDL
by Edgar Simo, mentored by Ryan C. Gordon
2008-08-25 09:55:03 +00:00
Sam Lantinga
f24330df2a Fixed compile errors introduced during the merge refactoring 2008-08-25 08:50:37 +00:00
Sam Lantinga
6d8889d8e9 Added missing X1/X2 button support 2008-08-25 06:58:34 +00:00
Sam Lantinga
474cfaad1e Final merge of Google Summer of Code 2008 work...
Many-mouse and tablet support
by Szymon Wilczek, mentored by Ryan C. Gordon

Everything concerning the project is noted on the wiki:
http://wilku.ravenlord.ws/doku.php?id=start
2008-08-25 06:33:00 +00:00
Sam Lantinga
a5968b9cb6 Missing keysym defines 2008-08-25 05:30:28 +00:00
Ryan C. Gordon
10d3a11fd0 Testing Subversion commit RSS feed. 2008-07-05 18:25:28 +00:00
Sam Lantinga
eb59b3278d Reverted Holmes' changes, they should be on the iphone branch 2008-07-05 16:15:44 +00:00
Holmes Futrell
a406dfe2a4 disabled compile time assertion ... no 64 bit primitive types available on iPhone (it appears) 2008-06-22 23:13:02 +00:00
Holmes Futrell
3995fbbd73 Added iPhone OS (__IPHONEOS__) as a platform 2008-06-22 23:12:02 +00:00
Holmes Futrell
b32793e1f9 iPhone OS uses a custom main 2008-06-22 23:10:44 +00:00
Sam Lantinga
9816457898 Fixed compiler warning 2008-05-26 12:56:10 +00:00
Sam Lantinga
1a2cd9be5c Reverted revision 3416, fixing bug #589
http://bugzilla.libsdl.org/show_bug.cgi?id=589

I was going to add the current window to the OpenGL context info, but that
doesn't fix the case where you set the current context to NULL and then set
the current context to the same window it had before.

This also doesn't take into account changes to the window that might affect
the context, such as viewport changing or fullscreen/windowed mode changing.

Any ideas?
2008-05-26 12:43:37 +00:00
Sam Lantinga
48b1db8b30 Date: Wed, 7 May 2008 21:48:10 +0200
From: Christian Walther
Subject: SDL 1.3 Xcode projects

Here are my promised updates to the Xcode projects. They work as far
as I'm using them, but I have not tested them thoroughly, and there
may still be some cruft left. In particular, I haven't checked whether
the frameworks still work on older versions of Mac OS X (are we still
targeting 10.2?), and whether Altivec/SSE optimizations are properly
done. Of note: I incremented the framework version to B to enable SDL
1.2 and 1.3 to coexist in a single framework.

Let me know if you see any problems.

Greetings

   Christian
2008-05-08 05:06:24 +00:00
Sam Lantinga
8ec5a89f81 Updated Xcode project from Eric Wing 2008-05-02 14:55:08 +00:00
Sam Lantinga
b5de98aade So we don't forget to do this... 2008-03-18 12:31:14 +00:00
Bob Pendleton
97f034bc79 ran make indent 2008-03-14 20:43:44 +00:00
Bob Pendleton
b6e476a69b re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being
fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.
2008-03-14 18:17:49 +00:00
Bob Pendleton
98acd1149c In testdyngl.c the event type was being anded (&) with SDL_KEYDOWN and if the result was none zero the program was quiting. This is very weird because it was
working earlier this week.

I added some more trace code to SDL_x11events.c

In SDL_X11opengl.c I modified SDL_GL_GetSwapInterval() so that it returns a pretty good value even if you have the SGI swap extension instead of the MESA swap
extension. I just saved the value you set and return it too you.
2008-03-07 23:57:15 +00:00
Bob Pendleton
1f0470ba8c oops, need to comment out some debug code. 2008-03-07 21:01:54 +00:00
Bob Pendleton
4534dabb7e Next version of internationalized input for X11. On my machine (famous last words :-) with a US English keyboard and locale I can compose ` and e and get a text
input event with the character è. You still get the keypress keyrelease events for the individual keys that go into composing the character.
2008-03-07 20:54:11 +00:00
Bob Pendleton
617e50c933 more valgrind errors fixed. Plus I ran make indent which changed a few files. 2008-03-07 17:20:37 +00:00
Bob Pendleton
2a40813ab2 Fixed many valgrind errors. But, I broke testdyngl. 2008-03-06 23:07:02 +00:00
Bob Pendleton
692da065af Fixing valgrind errors.
One of the error was the result of an unitended recursive call to X11_GL_LoadLibrary which was also fixed.
2008-03-06 17:08:10 +00:00
Bob Pendleton
95efd075f2 SetupWindowData in SDL_X11window.c was realloc()ing the display window list and incrementing numwindows even though those are being updated in functions that call
this function. The result is that it is possible to get the same window added to the list twice.
2008-03-04 23:09:28 +00:00
Bob Pendleton
1db7dfa3d2 Deleted a call to X__PumpEvents at the end of X11_GL_InitExtensions(). This function is being called from SDL_RecreateWindow at a point when the numwindows value in
is incorrect. The result is that an illegal access is being made in X_PumpEvents when it tries to look up the windows ID of the source of an event. Taking out that
call does not seem to have any effect on the testgl. But, I would be happy if someone else took a look at this problem and found a fix higher up the stack.
2008-03-01 20:34:36 +00:00
Sam Lantinga
0a91c7905c Now the program will process all events and then terminate. :) 2008-02-23 05:10:40 +00:00
Bob Pendleton
c6f95692fa HandleEvent() returns done each time it is called. If done was set to 0 the program should quit, but because done is not checked until *all* events are handled a
following event can reset done to 1 and prevent the program from terminating when told to. I fixed the while loop that handles events to check for the state of done
after handling each event. That could leave some events unhandled when the program exits, but it ensures that the program will exit.
2008-02-20 23:27:33 +00:00