Commit Graph

10682 Commits

Author SHA1 Message Date
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
Sam Lantinga
990676f5c4 Windows also remaps the numeric keypad... grrr 2008-02-11 21:06:32 +00:00
Sam Lantinga
71998faeae Checkout directly to the SDL 1.3 folder 2008-02-11 20:26:22 +00:00
Sam Lantinga
4b2404a4eb Show integer scancode, since that's how it's defined in the header. 2008-02-10 17:29:23 +00:00
Sam Lantinga
b7c419e51e Disable DirectFB by default, since it hasn't been updated for the 1.3 API yet. 2008-02-10 16:21:05 +00:00
Sam Lantinga
03eda66f37 Added support for keypad enter 2008-02-10 05:34:33 +00:00
Sam Lantinga
d4c23af239 Updated Visual C++ project 2008-02-10 05:14:28 +00:00
Sam Lantinga
8df4fc4ae5 Friggin' Windows remaps alphabetic keys based on keyboard layout.
We try to figure out what the actual layout independent values are.
2008-02-09 22:28:27 +00:00
Sam Lantinga
dc6eb861a5 Undo keyboard layout based alphabetic key mapping. Grr.... HACK HACK HACK... 2008-02-09 07:18:38 +00:00
Sam Lantinga
7c23e86a0d Implemented text input event for Win32 2008-02-09 06:47:46 +00:00
Sam Lantinga
d92958c0e5 Untested Win32 keyboard scancode code. 2008-02-08 08:35:49 +00:00
Sam Lantinga
27fce8ebae Fixed array overrun 2008-02-07 16:14:43 +00:00
Sam Lantinga
0e59c9db53 Fixed compile errors 2008-02-07 16:00:29 +00:00
Sam Lantinga
37131333be First pass of new SDL scancode concept for X11. 2008-02-07 15:31:09 +00:00
Sam Lantinga
80a950c3db Christian's comment:
/* Actually returns a UInt32 containing two character codes (and two 'reserved' bytes), but we're only interested in the second (or only) one */
2008-02-05 07:30:50 +00:00
Sam Lantinga
0f9d544f5e First pass implementation of new SDL scancode concept, as discussed with
Christian Walther.  Currently only implemented on Mac OS X for sanity
checking purposes.
2008-02-05 07:19:23 +00:00
Ryan C. Gordon
fd734cede6 Merged r3534:3535 from branches/SDL-1.2: Reset direction flag in SDL_revcpy(). 2008-02-04 17:25:33 +00:00
Sam Lantinga
7cc582cea4 Merged fix for bug #542 from SDL 1.2 2008-01-24 15:51:52 +00:00
Bob Pendleton
16c4fcc95c Minimal implementation of textinput events for x11. It only works for latin-1. 2008-01-15 22:37:17 +00:00
Bob Pendleton
4a1d83aef7 Enabled key board auto repeat in X11_InitKeyboard.c. Had to add a couple of new Xlib symbols. 2008-01-12 18:07:06 +00:00
Bob Pendleton
06920df50f one more time... I must be brain dead... 2008-01-12 16:56:42 +00:00
Bob Pendleton
1129c73ed3 More typos 2008-01-12 16:53:30 +00:00
Bob Pendleton
bd12ee97bd Fixed some typos in SDL_x11keyboard.c 2008-01-09 23:40:56 +00:00
Bob Pendleton
e065abc334 Checking in Christian Walther's patch for x11 keyboard input. Minor code tweaks by Bob. 2008-01-08 00:10:46 +00:00
Sam Lantinga
d3b0c22d33 Updated config scripts 2008-01-03 06:07:30 +00:00
Sam Lantinga
8f502d4bc2 Merged fix for bug #531 from SDL 1.2 revision 3511 2008-01-01 15:26:11 +00:00
Sam Lantinga
6f059e9947 Merged -fvisibility detection fix from SDL 1.2 revision 3500 2007-12-30 05:01:35 +00:00
Sam Lantinga
2f7fd42403 Christian Walther fixed bug #529 2007-12-29 22:15:39 +00:00
Sam Lantinga
652d55b702 Christian Walther fixed bug #530 2007-12-29 22:13:47 +00:00
Sam Lantinga
9e2c55b30c Merged fix for bug #508 from SDL 1.2 revision 3495 2007-12-29 21:36:17 +00:00
Sam Lantinga
124a0aa92d Merged fix for bug #482 from SDL 1.2 revision 3492. 2007-12-29 20:13:23 +00:00
Sam Lantinga
67aa85911e Fixed bug #478
Take the min and max values into account.
2007-12-29 19:45:09 +00:00
Sam Lantinga
4a989076f7 Merged fix for bug #503 from SDL 1.2 revision 3487 2007-12-29 19:29:20 +00:00
Sam Lantinga
6ca8994f51 Fixed bug #497
Check all joysticks instead of stopping if one has been removed.
2007-12-29 06:17:31 +00:00