Commit Graph

4010 Commits

Author SHA1 Message Date
Sam Lantinga
6920164fad Fixed bug 1014
Don't send events for unprintable characters
2010-07-17 18:57:51 -07:00
Sam Lantinga
e880b725c0 Fixed bug 1022
Fixed the X11 icon on 64-bit systems
2010-07-17 18:44:34 -07:00
Sunny Sachanandani
03538d7a6e Fixed a minor bug with texture blending. 2010-07-17 15:53:29 +05:30
Sunny Sachanandani
2e46009f81 Remove some redundant code. 2010-07-17 15:41:34 +05:30
Sunny Sachanandani
39bc51bc48 Fixed so many things. See the changelog listed below.
1.  Use SDL_X11_HAVE_XRENDER to check for RENDER at runtime.
2.  Added lots of comments.
3.  Added checks and lots of calls to SDL_SetError().
4.  Fixed X11_CreateTexture() so that the pixmap and image created
    are for the format specified by the user and not the window
    format. This is only for the RENDER case.
5.  The above change required that functions to convert SDL
    pixel format enums to Visuals and XRenderPictFormats be added.
6.  Fixed lots of 'style' issues.
2010-07-17 15:38:24 +05:30
Sunny Sachanandani
fe5dc5364e Add necessary symbols to SDL_x11sym.h 2010-07-17 11:41:43 +05:30
Sam Lantinga
41b1e698ff Revision 3163 added the following formats for OpenGL ES:
SDL_PIXELFORMAT_ABGR4444, SDL_PIXELFORMAT_ABGR1555, SDL_PIXELFORMAT_BGR565
2010-07-16 22:16:05 -07:00
Jim Grandpre
9a0295a962 Merged changes 2010-07-16 20:53:44 -04:00
Jim Grandpre
d18ef30119 Bug fixes, now using RWops instead of File pointers. 2010-07-16 20:48:43 -04:00
Sam Lantinga
1e201db3ce Started trying to build gesture code for iPhone 2010-07-15 06:51:16 -07:00
Eli Gottlieb
bc85c58194 Added in Visual Studio patch. 2010-07-15 01:41:38 -04:00
Sam Lantinga
774e4ce3f5 Added support for testing window manager icons 2010-07-14 21:25:15 -07:00
Sam Lantinga
a20175b675 Fixed bug #1000
Don't crash if someone tries to delete a context after we've unloaded the library.  In this case it's SDL_compat that doesn't know SDL_VideoQuit() has been called.  Hmm...
2010-07-14 07:48:35 -07:00
Sam Lantinga
abe03eb793 pelya 2010-07-12 03:53:48 PDT
In function GLES_RenderCopy() in SDL_renderer_gles.c:819 there is one memcpy()
that can be avoided if we're updating whole texture.
Because of that the SDL 1.3 in compatibility mode is working even slower than
software rendering in SDL 1.2.
2010-07-14 07:31:35 -07:00
Sam Lantinga
2d63dc10b4 Zero any fields not explicitly filled in. 2010-07-14 07:25:07 -07:00
Sunny Sachanandani
be82664fd2 Implement blending modes for textures. Fix off-screen pixmaps to be ARGB rather than RGB to enable blending across frames. Clear the screen and off-screen pixmaps when the renderer is created. 2010-07-14 19:17:11 +05:30
Sam Lantinga
6ad28bf626 Now that the fullscreen wm state works, enable the video modes. Yay! :) 2010-07-14 01:02:18 -07:00
Sam Lantinga
f359555c64 Fixed setting fullscreen and maximized states for windows that haven't been mapped yet. 2010-07-14 00:56:08 -07:00
Sam Lantinga
1fa5363e3a Let the window manager know we're a "normal" window 2010-07-14 00:28:15 -07:00
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
Eli Gottlieb
8445183d9e Numerous bug fixes that keep testeyes from crashing and dying. 2010-07-14 00:49:28 -04:00
Jim Grandpre
4b707013d1 Added alternative finger tracking method. Still prefer IPHONE_TOUCH_EFFICIENT_DANGEROUS. 2010-07-13 18:31:09 -04:00
dewyatt
d3a558d55e Added SDL_utf8strlcpy to copy at UTF-8 character boundaries.
Changed SDL_SendKeyboardText and SDL_SendEditingText to use SDL_utf8strlcpy.
2010-07-13 15:05:45 -04:00
Ryan C. Gordon
8607c1b980 Check configure-defined macro before doing _anything_ with XShape. 2010-07-13 02:43:49 -04:00
Ryan C. Gordon
bf17cebd40 Add XShape test to configure scripts. 2010-07-13 02:43:10 -04:00
Ryan C. Gordon
5d5a40c96b Removed compiled testeyes from revision control. Added it to ignore list. 2010-07-13 02:27:59 -04:00
Ryan C. Gordon
ed00333a03 Make sure we have XShape symbols before we allow a shaped window. 2010-07-13 02:26:50 -04:00
Ryan C. Gordon
53fa99d66d Add new X11 symbols that XShape support needs to the dynamic function list. 2010-07-13 02:12:14 -04: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
6f2000e6d2 Merged changes from the main SDL codebase 2010-07-12 21:09:23 -07:00
Jim Grandpre
035486360f Added Iphone support (untested) 2010-07-12 22:03:25 -04:00
dewyatt
5155fd21d2 Changed Start/StopTextInput back to not take any parameters.
We call SDL_GetKeyboardFocus internally now.
2010-07-12 14:17:43 -04:00
dewyatt
f5a32a71f9 Initial IMM implementation.
IME input should now work fairly well.
2010-07-12 11:33:27 -04: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
Eli Gottlieb
c26d5fb04d Fixed a pair of syntax errors. 2010-07-11 17:11:22 -04:00
Jim Grandpre
9e7603a6ba Added some files I had previosuly missed 2010-07-11 01:15:39 -04:00
dewyatt
42439abb5e Changed StopTextInput to take an SDL_Window parameter. 2010-07-10 13:15:47 -04:00