Commit Graph

5003 Commits

Author SHA1 Message Date
Ryan C. Gordon
eb19bd06d2 Check for selectors UIScreen responds to, not the base system version.
Thanks to Vittorio Giovara for the patch!
2011-11-19 19:18:20 -05:00
Ryan C. Gordon
464d3855ca Fix iOS build when SDL_POWER_UIKIT isn't defined.
Thanks to Vittorio Giovara for the patch!
2011-11-19 19:13:55 -05:00
Sam Lantinga
359b89cc7e Fixed the aux directory to be the one recognized by automake.
This isn't strictly needed by SDL, but it's a good example for other projects.
2011-11-17 00:43:44 -05:00
Sam Lantinga
b76ca8acf5 Fixed where we set the content scale - it's used by the renderbufferStorage:GL_RENDERBUFFER_OES call. 2011-11-17 00:41:07 -05:00
Ryan C. Gordon
052948dc6e Patched to compile on newer FreeBSD releases.
Thanks to Marcus von Appen for the patch!
2011-11-16 05:13:40 -05:00
Sam Lantinga
2ddecd140d Fixed issues with the touch coordinates in landscape mode.
In landscape mode the frame stays the same, and the transform property is modified with the appropriate rotation.
The touch coordinates are rotated by the transform, so if I want to normalize them by the frame rect, I have to transform the frame rect first.
2011-11-15 01:38:27 -05:00
Sam Lantinga
fb26595d0d Fixed whitespace 2011-11-10 06:38:26 -05:00
Sam Lantinga
1a10b41f28 Work in progress fixing support for rotated video modes 2011-11-10 03:48:59 -05:00
Sam Lantinga
a59d3e6f2f Fixed issues closing lines with the OpenGL ES renderer. 2011-11-10 00:22:44 -05:00
Sam Lantinga
1bb72d783a Fixed an offset issue with glDrawTexiOES() when the viewport is set. 2011-11-10 00:22:01 -05:00
Sam Lantinga
5fedcb50d8 GIMP wrote bmp files in RGBX format. Huh. 2011-11-09 22:53:44 -05:00
Sam Lantinga
fe31953a46 Fixed creating a fullscreen window on iOS 2011-11-09 02:35:49 -05:00
Ryan C. Gordon
b7ab18db4c Fixed compiler warnings for uninitialized variables. 2011-11-09 00:27:44 -05:00
Ryan C. Gordon
57427cf80f Fixed uninitialized variable. 2011-11-08 19:45:41 -05:00
Ryan C. Gordon
83f9d9b276 Merge from https://bitbucket.org/keestux/sdl ... SDL_gesture code cleanup. 2011-11-08 16:24:02 -05:00
Sam Lantinga
858f6f21de To answer the FIXME, no, we shouldn't force this. The fullscreen flag implies borderless behavior even though the flag isn't set on the window (in case fullscreen is toggled) 2011-11-08 00:17:41 -05:00
Sam Lantinga
5cee776161 The iOS driver sets the fullscreen and shown flags on the window during creation, so we need the mode code to be aware of that, since none of the other fullscreen/shown code paths get run.
FIXME: Maybe we need a better way of detecting that?
2011-11-08 00:03:54 -05:00
Sam Lantinga
aaf891d9c8 Fixed a typo, we should set the driverdata if we are 3.2 or newer. 2011-11-08 00:02:47 -05:00
Sam Lantinga
e30ec4d8ce Fixed list loop caused when there are two entries in the list and the one being returned is already at the head. 2011-11-07 23:10:49 -05:00
Sam Lantinga
4305c920da Fixed SDL applications being killed immediately after being backgrounded, because they were trying to draw while minimized. 2011-11-07 23:07:00 -05:00
Sam Lantinga
c932d63cdb Need to send a key up, silly. 2011-11-07 02:24:52 -05:00
Sam Lantinga
76714d4f99 Fixed a typo in the header. 2011-11-07 02:25:01 -05:00
Sam Lantinga
6a5a074397 Fixed double-free in the shader cache at shutdown 2011-11-07 00:45:13 -05:00
Ryan C. Gordon
5054c0e57d Mac OS X: Fixed build when compiling without Cocoa support.
Thanks to Martin Gerhardy for the patch!
2011-11-06 17:05:48 -05:00
Ryan C. Gordon
c33e36f58b Fixed some preprocessor mistakes introduced in iOS project cleanup. 2011-11-03 11:51:47 -04:00
Ryan C. Gordon
dd3d93c50f Fix crash on X servers without UTF-8 support. 2011-10-31 23:37:57 -04:00
Sam Lantinga
6371c44a9e Lots of fixes importing SDL source wholesale into a new iOS project 2011-10-31 05:56:58 -04:00
Sam Lantinga
04ce234fd4 This code works for OpenGL ES 1.1 as well! :) 2011-10-31 03:06:32 -04:00
Sam Lantinga
462a6474ac Implemented RenderReadPixels for the OpenGL ES 2.0 renderer. 2011-10-31 02:55:21 -04:00
Sam Lantinga
a347411651 SDL_ConvertPixels() returns 0 on success 2011-10-31 02:44:21 -04:00
Sam Lantinga
4827ef3a38 Fixed warnings on iOS 2011-10-31 01:59:54 -04:00
Sam Lantinga
c2a6df6073 The draw color affects RenderClear() as well. (thanks to the feedback form to whoever pointed this out) 2011-10-30 17:53:54 -04:00
Sam Lantinga
66d375d59e Fixed typo - thanks Sheena! 2011-10-30 17:31:59 -04:00
Andreas Schiffler
d2ad34e8d3 Fix sdl-haiku buildbot compiler warnings 2011-10-30 00:19:13 -07:00
Andreas Schiffler
bc907fee45 Update SDL_HasClipboardText functions to return value based on clipboard content; Fix memory leak in fallback SetClipboard implementation 2011-10-29 23:43:59 -07:00
Andreas Schiffler
71caea56e8 Add clipboard tests 2011-10-29 23:34:19 -07:00
Ryan C. Gordon
a672530595 SDL_memcpyMMX(): Fixed handling of overflow bytes.
Thanks to Mason Wheeler for the fix!
2011-10-29 01:11:47 -04:00
Ryan C. Gordon
1a32c6a0c5 SDL_memcpyMMX(): Make sure srcskip and dstskip are 8-byte aligned.
Thanks to Patrick Baggett for the fix!
2011-10-29 01:03:50 -04:00
Ryan C. Gordon
40b38ee8db Removed tabs and DOS endlines from SDL_blit_copy.c ... 2011-10-29 00:57:45 -04:00
Kees Bakker
87a03a15a8 Type of SDL_GestureTouch.id is SDL_TouchID (only for SDL_gesture.c internal) 2011-10-27 23:04:50 +02:00
Kees Bakker
dded190188 Correct usage of SDL_AddDollarGesture (return value >= 0 on success) 2011-10-27 22:53:28 +02:00
Kees Bakker
2409db9e8b Refactor SDL_AddDollarGesture 2011-10-27 22:52:03 +02:00
Kees Bakker
0579ea60db Reformat SDL_gesture.c (part 2, space after keywords) 2011-10-27 22:23:09 +02:00
Kees Bakker
085bef88ff Reformat SDL_gesture.c (part 1, reindent using Emacs, c-basic-offset 4) 2011-10-27 21:26:44 +02:00
Ryan C. Gordon
ab5d942d93 Don't bother checking S_OK here, it'll work in falling through. 2011-10-26 12:04:05 -04:00
Ryan C. Gordon
599c080360 Fix X11 dynamic loading.
Previous change broke it.
2011-10-24 23:18:53 -04:00
Sam Lantinga
6d456a4116 Added SDL_GetScancodeFromName() and SDL_GetKeyFromName() 2011-10-24 21:34:54 -04:00
Sam Lantinga
9c2780471b valgrind FTW! 2011-10-24 23:00:09 -04:00
Ryan C. Gordon
bdb05fd683 Use correct Xinerama APIs for querying version and availability.
Fixes Bugzilla #1314.
2011-10-24 15:33:58 -04:00
Ryan C. Gordon
fcca056ae4 SDL_X11_HAVE_* should default (and reset) to zero. 2011-10-24 12:07:41 -04:00