Sam Lantinga
8850825033
Added an assert log category, and NSLog support on Mac OS X and iOS
2012-10-30 12:30:02 -07:00
Sam Lantinga
08f58acb7a
Refactored the UIKit mode code into a separate file so it's cleaner and more consistent with other backends
2012-09-29 17:23:40 -07:00
Sam Lantinga
9b357d17de
Only change the UI orientation if it's actually necessary for the mode.
2012-09-29 16:41:32 -07:00
Sam Lantinga
72cdf43759
No variable shadowing, reuse the size variable
2012-09-29 00:01:32 -07:00
Sam Lantinga
f380ecb137
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Ryan C. Gordon
8835a0dacb
Added SDL_SetWindowBordered() API.
...
--HG--
extra : rebase_source : 11750f0d8e7b59af26d97c778a332c0b4b72ea4b
2012-09-13 01:43:53 -04:00
Ryan C. Gordon
63b91d2986
Moved iOS-specific code into uikit target. Fixes crashes in X11 target.
2012-09-12 19:36:18 -04:00
Sam Lantinga
bf2304785f
Fixed bug 1564 - SDL has no function to open a screen keyboard on Android.
...
Philipp Wiesemann implemented a general on-screen keyboard API for SDL, and I switched iOS code over to use it.
2012-08-11 10:15:59 -07:00
Sam Lantinga
6d35992e47
Fix for the Game Center status window always being behind the SDL window (untested!)
2012-07-22 11:24:04 -07:00
Sam Lantinga
4fed7973b3
Fix for double free when quitting on iOS
...
Tim Angus 2012-02-20 09:40:35 PST
As alluded to in the email thread "SDL2 error on iOS (doublefree)", I believe
the original cause of this bug is confusion over the purpose of
SDL_VideoDisplay::current_mode. It looks as though it is a weak reference to
another mode, albeit with value semantics. The iOS port treated it as a strong
reference however and claimed ownership, which is why things blew up. All the
patch really does it to stop treating current_mode as a strong reference.
To prevent this happening again it might be an idea to change current_mode to
be a pointer type rather than a value. This would certainly make its semantics
much more obvious. Failing that, a comment in the struct indicating its weak
reference properties might be wise.
2012-02-20 20:46:30 -05:00
Tim Angus
effddab35f
* On iOS, fix support for the case where [UIScreen scale] is not 1.0 (retina)
...
* Allow selection of non-retina modes on retina devices
2012-01-25 14:29:56 +00:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Ryan C. Gordon
3d371a2143
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
Sam Lantinga
795a68e8a8
Work in progress fixing support for rotated video modes
2011-11-10 03:48:59 -05:00
Sam Lantinga
3d98438877
Fixed creating a fullscreen window on iOS
2011-11-09 02:35:49 -05:00
Sam Lantinga
e2d1d0aec3
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
ad2a21d404
Lots of fixes importing SDL source wholesale into a new iOS project
...
--HG--
rename : src/libm/math.h => src/libm/math_libm.h
2011-10-31 05:56:58 -04:00
Kees Bakker
0443fd0ac5
Use a small function to release UIScreenMode after checking it is supported
2011-10-18 21:36:28 +02:00
Kees Bakker
811c7fe08d
Eliminate UIScreenMode parameter from UIKit_AddDisplay
2011-10-18 21:32:54 +02:00
Ryan C. Gordon
1d7cfea79b
Merged with Kees Bakker's repo at https://bitbucket.org/keestux/sdl ...
2011-10-18 00:58:22 -04:00
Ryan C. Gordon
4ff67de178
Fix up some retain/release issues with UIScreenMode objects.
...
Fixes Bugzilla #1191 .
This patch is based on work done by Vittorio Giovara.
2011-10-14 20:47:53 -04:00
Kees Bakker
eecf78dc29
Do not use UIScreenMode to add a iOS display, always use the boundary
...
This solves the problem that on iPad you would get 1024x768 instead
of 768x1024 when calling SDL_GetDesktopDisplayMode(0, &mode)
See Apple's doc for UIScreenMode where is says:
"Most developers should never need to use the information provided
by this class and should simply use the bounds provided by the
UIScreen object for their drawing space."
2011-10-09 22:00:20 +02:00
Kees Bakker
7e6128661d
Simplied the code a bit in uikit/SDL_uikitvideo.m
2011-09-28 21:13:09 +02:00
Kees Bakker
f74237993f
Use Objective-C construct for..in instead of oldfashioned C (uikit)
2011-09-28 20:32:26 +02:00
Kees Bakker
2bd415b42a
Use a consistent source code format in src/video/uikit
...
For example:
* Opening bracket of a method/function on a new line at column 0
* space after "if", "while", etc
2011-09-27 22:51:26 +02:00
Kees Bakker
7797271a96
Cleanup out trailing whitespace in src/video/uikit
2011-09-27 21:02:26 +02:00
Ryan C. Gordon
1fc724be50
Properly set up default resolutions.
...
Fixes Bugzilla #1191 .
Thanks to Jeremy Jurksztowicz for the fix!
2011-07-05 22:05:56 -04:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Ryan C. Gordon
8a8592e34c
iOS: Report both landscape and portrait orientation as display modes.
2011-03-27 01:35:19 -04:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
5897ef7d95
Moved the rendering code out to a separate directory in the hope that it can someday be completely decoupled from the rest of the library and be expanded to an awesome 2D on 3D library.
...
--HG--
rename : src/video/windows/SDL_d3drender.c => src/render/direct3d/SDL_d3drender.c
rename : src/video/SDL_renderer_gl.c => src/render/opengl/SDL_renderer_gl.c
rename : src/video/SDL_renderer_gles.c => src/render/opengles/SDL_renderer_gles.c
rename : src/video/SDL_renderer_sw.c => src/render/software/SDL_renderer_sw.c
2011-02-02 14:34:54 -08:00
Sam Lantinga
c9c3d0381a
Fixed spacing
2011-02-01 08:59:22 -08:00
Sam Lantinga
5c9e54ea34
Added the ability to get the UIKit window through the SDL API.
...
You can also do this through the native API:
UIWindow *window = [[UIApplication sharedApplication] keyWindow];
Also needed to name the union for events and window info.
2011-01-20 16:05:59 -08:00
Ryan C. Gordon
b6ef5b01d8
Much improved multi-display support for iPad.
...
Fixes most issues and limitations, I think.
2010-05-02 05:08:12 -04:00
Ryan C. Gordon
953d5e65ea
Test for system version in the Apple Recommended way.
...
(a similar test is output by Xcode for the iPhone View Application template).
2010-05-01 13:50:56 -04:00
Ryan C. Gordon
4f49f9e01e
Implemented display mode functionality for UIKit.
...
The iPad (and iPhoneOS 3.2) introduce both a larger screen and the ability to
enumerate and configure external displays. This hooks up SDL's multi-display
API to this new functionality, and removes the hardcoded iPhone resolution.
2010-04-29 22:53:18 -04:00
Sam Lantinga
7676ffcf3f
Fixed function prototype
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404394
2010-01-13 05:21:30 +00:00
Sam Lantinga
3be3a8db09
Fixed building on iPhone
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404295
2009-12-12 00:55:13 +00:00
Sam Lantinga
0c30a927ed
Updated copyright date
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403321
2008-12-08 00:27:32 +00:00
Sam Lantinga
c6ac35a2bb
Final merge of Google Summer of Code 2008 work...
...
Bring SDL to iPhone and iPod Touch
by Holmes Futrell, mentored by Sam Lantinga
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403222
2008-10-04 06:46:59 +00:00