Commit Graph

3321 Commits

Author SHA1 Message Date
Sam Lantinga
2995c71aeb Much better debugging of property changes 2010-07-14 00:08:46 -07:00
Sam Lantinga
4fa4fde20f Turned off debug spew 2010-07-13 23:14:00 -07:00
Sam Lantinga
332544ff40 Lots of prep for the "real" way to support fullscreen mode on modern window managers.
Unfortunately, this doesn't work.  I also noticed that maximizing doesn't work as well.  Also xprop hangs when trying to list properties of SDL windows.... ???
2010-07-13 23:11:10 -07:00
Sam Lantinga
31e17885c7 Added test case for maximize code 2010-07-13 23:05:14 -07:00
Sam Lantinga
0c8dcac0b6 Use a better switch for the clipboard property format 2010-07-13 22:39:46 -07:00
Sam Lantinga
753ad58277 Fixed compile warnings 2010-07-13 22:26:50 -07:00
Sam Lantinga
56a9f48542 Fixed compile warning 2010-07-13 22:25:30 -07:00
Sam Lantinga
eef59d7ccd Fixed compile warning 2010-07-13 22:24:46 -07:00
Sam Lantinga
322aa25962 Fixed compile warning. 2010-07-13 22:22:43 -07:00
Sam Lantinga
9ecac589b8 Daniel Wyatt 2010-03-26 14:52:53 PDT
If a non-console Windows SDL program has a non-quoted 0th argument followed
optionally by more non-quoted arguments and then by an empty quoted argument,
it will crash (attempts to dereference a NULL pointer).

In other words, something like this:
test.exe [non-quoted args] "" [...]

The fix is a one-liner in ParseCommandLine() of
src/main/win32/SDL_win32_main.c.

You can test this with any non-console SDL program on windows like this:
1) Open a console (cmd.exe)
2) Launch the program in one of the following ways:
program ""
program arg1 ""
program arg1 "" arg3

These will not cause a crash:
"program" [...]
program "arg1" ""

When a Windows program is launched from Explorer, its 0th argument seems to
always be quoted, so it won't be a problem in that case.

I've tested this on Windows XP SP3 and Windows 7.
2010-07-12 22:08:50 -07:00
Sam Lantinga
b07db7e9c3 Implemented X11 system window manager info for SDL 1.3. It's simple. Really. 2010-07-12 01:20:57 -07:00
Sam Lantinga
e026e96e95 Made it possible to switch the text format in one place 2010-07-12 00:49:26 -07:00
Sam Lantinga
b758d7ddd5 Added X11 clipboard support.
As far as I know there isn't any real way to tell when the clipboard contents have changed without polling them, so I didn't implement the clipboard update event on X11.
2010-07-12 00:36:55 -07:00
Sam Lantinga
8c81b4fdae Fixed compile warnings 2010-07-12 00:35:24 -07:00
Sam Lantinga
6540320beb Fixed compile warnings 2010-07-12 00:35:14 -07:00
Sam Lantinga
c9dcaef79e Fixed compiler warning 2010-07-12 00:33:24 -07:00
Sam Lantinga
b833ea1351 Amazingly the Windows code is almost identical to the Mac OS X code. :) 2010-07-08 23:07:34 -07:00
Sam Lantinga
ddf0465549 Added an event when the clipboard is updated, triggered after the window gains the keyboard focus. 2010-07-08 22:54:03 -07:00
Sam Lantinga
8a86c556fd Made the new public headers public 2010-07-08 06:21:48 -07:00
Sam Lantinga
f8e47b7402 Updated Xcode project files for clipboard API
Fixed generation of SDL_revision.h when hg is in the path set up in .bash_profile
2010-07-08 06:16:27 -07:00
Sam Lantinga
ca5e2aca83 Added Windows clipboard support 2010-07-08 05:43:34 -07:00
Sam Lantinga
01e31dbb30 Added Mac OS X implementation of clipboard support 2010-07-08 00:35:58 -07:00
Sam Lantinga
fe0b80fa05 I missed the Objective C files when updating the copyright date... 2010-07-08 00:03:39 -07:00
Sam Lantinga
4ceea8d275 Added simple clipboard test 2010-07-08 00:00:07 -07:00
Sam Lantinga
8697bbff30 Need to add new headers to Makefile.in 2010-07-07 23:59:20 -07:00
Sam Lantinga
e4fe1bb40f Simplified clipboard API for sanity's sake.
A complete clipboard implementation would support multiple formats that could be queried at runtime, events for when the clipboard contents changed, support for HTML, images, etc.  We're not going that crazy, at least for now. :)
2010-07-07 23:54:03 -07:00
Sam Lantinga
2612b4c651 Whoops, updated the copyright date 2010-07-07 23:26:07 -07:00
Sam Lantinga
261b8d8865 First pass at clipboard API, still very much in progress 2010-07-07 23:24:04 -07:00
Sam Lantinga
a517ddf4a5 Added SDL_FOURCC() 2010-07-07 21:36:09 -07:00
Sam Lantinga
46bbcfe087 Turn on blending if we're converting from a surface with colorkey enabled 2010-07-07 21:35:44 -07:00
Sam Lantinga
e983e5bb65 Updated iPhone keyboard code (which builds and runs on the iPad and iPhone simulator now)
Updated iPhone demos (which build and run again)
2010-07-07 18:58:51 -07:00
Sam Lantinga
a7b73120cb The arguments to main() should be NULL terminated (SuS v3 compliant) 2010-07-06 22:26:03 -07:00
Sam Lantinga
c216be7072 Re-implemented single mouse touches on the iPhone/iPad 2010-07-06 22:08:19 -07:00
Sam Lantinga
2be0429676 Removed obsolete header file 2010-07-06 10:58:23 -07:00
Sam Lantinga
221b03a7cd Fixed fullscreen window position
Fixed position calculation for centered windows
2010-07-06 08:22:36 -07:00
Sam Lantinga
77b65aa14a Merged changes from default 2010-07-05 22:48:35 -07:00
Sam Lantinga
a4b79afc6a Cleaned up the mouse window focus handling: you always pass in the relative window when sending a mouse event.
Fixed a bug where only mouse wheel up was sent on Mac OS X
Fixed a bug where mouse window focus was getting hosed by the fullscreen mouse code on Mac OS X
2010-07-05 22:48:13 -07:00
Sam Lantinga
a2dd563d6c Removed obsolete test program. Ryan may resurrect it when the new multi-mouse code is implemented. 2010-07-05 22:45:45 -07:00
Sam Lantinga
f6b92912cd Fixed usage message - it shouldn't have a printf format specifier 2010-07-05 22:45:15 -07:00
Sam Lantinga
f37a98447c Removed SDL.lib and SDLmain.lib from the projects since the dependencies are set up properly. 2010-07-05 18:18:25 -07:00
Sam Lantinga
acc9de6fd9 Added dependencies on SDL.lib and SDLmain.lib to the test programs 2010-07-05 17:14:37 -07:00
Sam Lantinga
6931049bd6 Split out the Visual C++ 2005 and 2008 projects explicitly.
Added the test programs to the Visual C++ 2008 project.
2010-07-05 17:10:34 -07:00
Sam Lantinga
671e388a00 Fixed revision type for SDL 1.3 2010-07-05 13:10:47 -07:00
Sam Lantinga
ee344feef6 Added missing file to the automated test project 2010-07-05 13:10:31 -07:00
Sam Lantinga
283fbbba2b Make sure SDL gets installed to the correct prefix for the new cross-compiler tools. 2010-07-05 12:41:28 -07:00
Sam Lantinga
280d468210 Fixed compile warning with latest mingw32 compiler 2010-07-05 12:32:44 -07:00
Sam Lantinga
672bd0bbc6 Typo in documentation 2010-06-27 23:17:36 -07:00
Sam Lantinga
fe6051e551 Removed one more use of () 2010-06-26 08:58:06 -07:00
Sam Lantinga
b90f3fea9c Mostly cleaned up warnings with -Wmissing-prototypes 2010-06-26 08:56:48 -07:00
Sam Lantinga
d89ec9302c Hello Sam.
I did fix/update the SDL 1.3 pandora port today ( 11 june 2010 ) and you can find the "hg diff" attached :)

David Carré ( Cpasjuste )
2010-06-17 22:23:20 -07:00