Sam Lantinga
7db5ff2019
Updated version to 2.0.4
2014-09-02 06:55:47 -07:00
Sam Lantinga
01ef33de7d
Fixed bug 2696 - Mac: fix display mode refresh rate calculation
...
Alex Szpakowski
SDL's Cocoa backend uses the CGDisplayMode API to get refresh rate information about a display mode, but CGDisplayModeGetRefreshRate will return 0 on most non-CRT monitors.
The only way I know of to get correct refresh rate information in OS X is via the CoreVideo DisplayLink API.
I have attached a patch which tries to use the CVDisplayLinkGetNominalOutputVideoRefreshPeriod function if CGDisplayModeGetRefreshRate fails, which fixes display mode refresh rate information on the monitors I tested.
The CVDisplayLink API requires linking with the CoreVideo framework, and the patch updates the various build files to do so.
2014-08-23 10:47:50 -07:00
Sam Lantinga
1505a522b4
Strip the binaries before signing them, in release configuration
2014-07-08 00:23:36 -07:00
Sam Lantinga
b607a9cca3
Fixed supporting multiple frameworks
2014-07-07 23:48:21 -07:00
Sam Lantinga
89a16bbca7
Fixed code signing release frameworks
2014-07-07 23:40:10 -07:00
Sam Lantinga
f9646a37be
Added OpenGL ES headers to public headers
2014-06-21 11:42:46 -07:00
Ryan C. Gordon
b9e14b41e7
Don't link directly against OpenGL.framework on Mac OS X.
...
We dlopen() it as appropriate already.
2014-06-05 11:04:07 -04:00
Sam Lantinga
f47915cd5b
Fixed bug 2489 - SDL2.framework references __Block_copy in /usr/lib/libSystem.B.dylib, but this symbol cannot be found on OSX-10.5
...
Thomas Schatz
The dynamic library (extracted from SDL2-2.0.3.dmg and put in /Library/Frameworks/) references the __Block_copy symbol in /usr/lib/libSystem.B.dylib, which cannot be found:
dlopen(/Library/Frameworks/SDL2.framework/SDL2, 6): Symbol not found: __Block_copy
Referenced from: /Library/Frameworks/SDL2.framework/SDL2
Expected in: /usr/lib/libSystem.B.dylib
From what I could gather __Block_copy seems to be related to the blocks extension to the C programming language introduced by Apple since OSX-10.6 (see: http://thirdcog.eu/pwcblocks/ ). If this is indeed the case, I don't think the SDL2-2.0.3.dmg on the website is at all compatible with OSX-10.5 countrary to what is announced.
2014-04-17 22:23:32 -07:00
Sam Lantinga
22023d5581
Updated framework version to match dylib version.
...
Actually the dylib compatibility version is 3.0.0, but don't break compatibility with previous frameworks, which were compatibility version 1.0.0
2014-03-12 07:55:32 -07:00
Sam Lantinga
c75b319a11
Updated SDL to version 2.0.3
2014-03-09 10:38:30 -07:00
Sam Lantinga
1af9aa0b1e
Updated SDL to version 2.0.2
2014-02-09 03:09:56 -08:00
Edward Rudd
943e4dc475
add testdropfile to OS X Project
2014-02-04 18:21:39 -05:00
Edward Rudd
8c1b08595f
Implement new backend methods for haptic and hot plugging on OS X
2014-02-04 18:17:16 -05:00
Edward Rudd
713a47ad24
add testhotplug to OS X test project and set target OS version to 10.5 for tests.
2014-02-04 18:16:52 -05:00
Sam Lantinga
dba255c1e5
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Ryan C. Gordon
3dfc14ade2
Implemented the Dynamic API magic.
2013-12-09 16:03:18 -05:00
Sam Lantinga
41ad8061c2
Fixed bug 2168 - Mac: SDL_filesystem.h not exported to public header folder when building framework
...
Alex Szpakowski
I actually made a mistake when creating the previous patch file... I forgot to include a crucial line which changed.
I've attached a new patch which just changes the line I forgot, since the other part has already been applied to the repository.
I tested this one by doing a clean rebuild of SDL, and it works with the new patch.
2013-10-21 02:46:16 -07:00
Sam Lantinga
d848f1236e
Fixed bug 2168 - Mac: SDL_filesystem.h not exported to public header folder when building framework
2013-10-21 02:20:39 -07:00
Sam Lantinga
6fca598f55
Updated SDL to version 2.0.1
2013-10-10 21:50:25 -07:00
Edward Rudd
268f60ac49
update xcode projects with filesystem API bits. (missing tests and missing from files from some targets)
2013-08-25 11:20:14 -04:00
Ryan C. Gordon
24180610d4
Added filesystem code to Mac and iOS Xcode projects.
2013-08-20 21:29:40 -04:00
Edward Rudd
56ab16d185
add missing SDL_bits.h from OS X framework
...
- also add in headers to static and shared targets (for completeness)
2013-08-20 15:56:08 -04:00
Edward Rudd
ca4844e67e
use @rpath for OS X Shared Library as well
2013-08-08 11:41:35 -04:00
Jørgen P. Tjernø
3c31b3003b
Mac: Better mouse-grab if you define SDL_MAC_NO_SANDBOX.
...
This uses a better mouse grab if you define SDL_MAC_NO_SANDBOX. This
mouse grab uses CGEventTapCreate, which you cannot access if you have
sandboxing enabled.
2013-08-07 16:29:15 -07:00
Ryan C. Gordon
68d2df2a8c
SDL_*Parachute() are no-ops, remove them.
2013-08-07 11:12:11 -07:00
Sam Lantinga
0e06fd2dfc
More work on bug 1999, added missing CFBundleExecutable key to Info.plist
2013-07-31 21:31:23 -07:00
Sam Lantinga
ccdd2f87a3
Fixed bug 2000 - The framework INSTALL_PATH still uses @executable_path
...
dak180
Since the MACOSX_DEPLOYMENT_TARGET is 10.5; INSTALL_PATH should use @rpath.
See http://www.dribin.org/dave/blog/archives/2009/11/15/rpath/ for the details on why this is a good idea.
2013-07-30 23:33:32 -07:00
Sam Lantinga
1a3a905aa9
Added code signature step to Framework build process
2013-07-30 21:39:38 -07:00
Jørgen P. Tjernø
46e6bc483d
Fix #1445 : Use xcrun to find CpMac
...
This should make the DMG building step more reliable on all current and future
Xcodes, by using xcrun to find the path to CpMac.
2013-07-14 15:55:34 -07:00
Sam Lantinga
9c0dea8e15
Implemented an API for thread-local storage: SDL_TLSCreate(), SDL_TLSSet(), SDL_TLSGet()
2013-07-10 02:32:04 -07:00
Ryan C. Gordon
910e8a8155
Backout hg changset 898992405fa7; lots of things still use SDL_types.h. :/
...
Will remove this again at some point in the future, though.
2013-07-09 11:57:32 -04:00
Ryan C. Gordon
173b1e9280
Removed deprecated SDL_types.h header.
...
Fixes Bugzilla #1945 .
2013-07-08 23:37:00 -04:00
Jørgen P. Tjernø
ac9d81df00
Remove / update references to 1.2.
2013-06-27 17:07:24 -07:00
Sam Lantinga
765ba6cfd7
Removed obsolete Xcode templates and documentation
2013-06-17 06:35:41 -07:00
Edward Rudd
852882d81d
Add an OS X Shared library target
2013-05-30 10:02:26 -04:00
Edward Rudd
e4d34f3219
Fixups to the main Xcode project due to renamed README files and long since removed test files.
2013-05-28 16:26:44 -04:00
Andreas Schiffler
196baae63c
Deprecate test/automated and test/test-automation (replaced by test/testautomation*.*)
2013-05-18 23:32:53 -07:00
Sam Lantinga
0d9b661db8
File style cleanup for the SDL 2.0 release
2013-05-18 14:17:52 -07:00
Jørgen P. Tjernø
9e99462c06
Add new controller mappings for Windows.
2013-04-02 18:09:30 -07:00
Sam Lantinga
dd7f59a25e
Make SDL support the X11 clipboard TARGETS protocol, which advertises what formats text is available in from the application. This is necessary for many Linux programs to interact well with the clipboard.
2013-03-22 11:42:31 -07:00
Jørgen P. Tjernø
06837bd3e2
Add GameController mappings for popular controllers.
...
This adds mappings for:
- Another type of wired X360 controller
- A wireless X360 controller
- Logitech F710 (XInput and DInput modes)
- Logitech F310 (XInput mode)
- Logitech Cordless RumblePad 2
2013-03-12 18:28:36 -07:00
Sam Lantinga
ca94467587
Generate debug info for all configurations on all platforms
...
Turned off C++ exception handling for all configurations and all platforms
Turned on comdat folding and optimized references for all optimized builds
CR: Bruce Dawson
2013-02-27 11:39:38 -08:00
Sam Lantinga
69e2715258
Removed SDL_input.h from various projects
2013-02-19 05:46:51 -08:00
Jørgen P. Tjernø
da448f5b13
Fix SDL_SetWindowSize on certain WMs.
...
Makes SDL_SetWindowSize work on some WMs (like Fluxbox, ion3, Awesome,
WindowMaker), and when running without a WM.
Fixes bug 1513.
CR: saml
2013-02-18 18:28:02 -08:00
Sam Lantinga
019c60c1e8
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
29997d1175
Don't crash if we have the extension but couldn't load the XInput shared library.
2013-02-14 15:40:19 -08:00
Sam Lantinga
94b78a3298
Added SDL_bits.h to the Xcode projects
2013-02-13 21:22:29 -08:00
Jørgen P. Tjernø
8e2aba3d97
Fix a corruption when you remove first joystick on Linux.
...
Fixes a bug where the joystick subsystem would get corrupted if you unplug the
first of multiple joysticks. Fixes bug 1714.
CR: saml
2013-02-12 11:47:29 -08:00
Sam Lantinga
d30bd5f691
tree e293c2b7fde8
...
parent d0a3ee09cf93
author Edward Rudd <urkle@outoforder.cc> 1358013809 18000
committer Edward Rudd <urkle@outoforder.cc> 1358013809 18000
revision 6806
branch default
cleanup the test xcode project to compile on current codebase and be simpler to add new tests
2013-02-11 21:04:41 -08:00
Sam Lantinga
7d4908e1d0
Added missing SDL_gamecontroller.h to the Mac OS X project
2012-12-13 16:57:12 -08:00
Sam Lantinga
f4c4c1e5d8
Fixed building new joystick code on Mac OS X
2012-11-26 21:55:59 -08:00
Sam Lantinga
23950f0183
Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
2012-11-26 16:37:54 -08:00
Sam Lantinga
d3db855b77
Added Cocoa messagebox implementation to the OSX Xcode project
2012-10-30 12:37:57 -07:00
Sam Lantinga
e91fdd5b30
Turned off the install flag for the static library because we don't want it getting into application distribution packages.
...
Added SDL_x11messagebox.c to the static library target
2012-10-27 02:54:10 -07:00
Sam Lantinga
7c80d3d457
Added new message box API to Xcode projects
2012-10-24 00:13:50 -07:00
Sam Lantinga
6df7eadc37
Added patchlevel to version number
2012-10-19 21:19:30 -07:00
Sam Lantinga
d74045da2a
tree fc1a744f184c
...
parent 88580fa6c549
author Edward Rudd <urkle@outoforder.cc> 1350500791 14400
committer Edward Rudd <urkle@outoforder.cc> 1350500791 14400
revision 6592
branch default
use different rpath so SDL2.framework will live in the bundle's Framework folder
2012-10-19 21:18:06 -07:00
Sam Lantinga
396cc73864
tree 451ddf291d85
...
parent 7925f0f43dc4
author Edward Rudd <urkle@outoforder.cc> 1350500747 14400
committer Edward Rudd <urkle@outoforder.cc> 1350500747 14400
revision 6591
branch default
A few fixes to the SDL framework plist
- correct version number
- remove CFBundleExecutable
- correct CFBundleIdentifier
2012-10-19 21:17:58 -07:00
Sam Lantinga
12f7e857fb
Fixed copying headers to the Framework
2012-10-02 23:23:44 -07:00
Sam Lantinga
ffabd91859
Added SDL_system.h to the various projects
2012-06-23 06:46:06 -04:00
Sam Lantinga
3da89b1dd0
Updated Mac OS X and iOS projects
2012-06-21 10:41:25 -04:00
Sam Lantinga
5277741dcd
Updated Android Makefile for SDL2
2012-01-30 20:09:50 -05:00
Sam Lantinga
254cf2c53c
Removed old compat files from Visual Studio and Xcode projects
2012-01-22 22:09:29 -05:00
Sam Lantinga
c484f884c5
Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2
2012-01-22 17:21:00 -05:00
Sam Lantinga
2e7c2ac7c8
Futzing around with strip settings
2012-01-09 00:24:08 -05:00
Sam Lantinga
566e80ff71
Updated Xcode project
2012-01-08 14:45:57 -05:00
Sam Lantinga
1576610f7c
Updated SDL test projects
2012-01-07 17:08:17 -05:00
Sam Lantinga
69800abcef
Use version B instead of A until we switch SDL 1.3 to SDL2
...
C.W. Betts 2012-01-06 22:58:41 PST
I would NOT use A. SDL 1.2 uses A, and if I understand correctly, SDL 1.3 and
SDL 1.2 are not binary compatible. Having a different link path for 1.2 and 1.3
will solve any runtime linking errors that might occur.
Sam Lantinga 2012-01-07 00:22:09 PST
Good point. Until we switch SDL 1.3 to SDL2, we shouldn't use the same link
path.
2012-01-07 03:22:47 -05:00
Sam Lantinga
97ea7268fb
Switched back to version A, since we don't actually have a version A for SDL 1.3.
...
It would only be meaningful if we were planning to ship 1.2 as A, and 1.3 as B, which is completely worthless given the headers will be for 1.3 and the API is completely different.
2012-01-07 01:03:54 -05:00
Sam Lantinga
20abdb9182
Switched to @rpath for the install path and switched minimum OS to 10.5
...
Removed extra build configurations
2012-01-02 00:47:54 -05:00
Sam Lantinga
85cc916176
Upgraded SDL Xcode project for XCode 4.2, including switching Framework Version to "B", which is required by the Apple Store.
2011-12-31 13:29:09 -05:00
Ryan C. Gordon
9aba292cfc
Added SDL_dropevents to the Xcode project files.
...
Fixes build.
2011-12-06 21:46:19 -05:00
Ryan C. Gordon
9a4e598f42
Removed sail.bmp reference from Xcode project.
...
Fixes Buildbot.
2011-09-09 10:45:48 -04:00
Ryan C. Gordon
82df1959c1
Removed legacy Mac OS X dlcompat code.
...
It was only needed for Mac OS X 10.0 through 10.2, so it seems silly to keep
it around for SDL 1.3.
I'll leave it in the 1.2 branch for now, though.
2011-09-09 00:34:48 -04:00
Ryan C. Gordon
6634d3d1fe
Merged Mac OS X and iOS audio targets.
2011-08-04 00:45:09 -04:00
Sam Lantinga
117146456c
Removed buggy and LGPL MMX mixing routines.
2011-04-08 13:16:33 -07:00
Sam Lantinga
b12e397498
Don't be clever, just call it testthread
2011-03-25 11:09:57 -07:00
Sam Lantinga
81c862f80d
The Xext directory no longer exists
2011-03-05 10:03:57 -08:00
Sam Lantinga
5e0f2c8b85
Updated the template code
2011-02-20 19:15:00 -08:00
Sam Lantinga
dbb0a44739
Renamed SDL_keysym.h to SDL_keycode.h to avoid confusion.
2011-02-16 15:46:12 -08:00
Sam Lantinga
e3883e9792
The scripts to generate header files are no longer necessary.
2011-02-16 12:15:04 -08:00
Sam Lantinga
76489b5e9e
Removed unused leak detection code.
2011-02-11 14:23:22 -08:00
Sam Lantinga
65eb03e87b
Fixed compile in Xcode
2011-02-11 10:18:34 -08:00
Sam Lantinga
2354f8cc88
Updated Xcode project with OpenGL shader files
2011-02-09 10:37:52 -08:00
Sam Lantinga
47818cfba9
Added a simple log message API
2011-02-07 16:45:40 -08:00
Sam Lantinga
1a384e89c4
Updated Xcode project with moved and removed files
2011-02-06 02:41:32 -08:00
Sam Lantinga
c952c0543d
Updated Mac OS X and iOS projects
2011-02-05 16:02:30 -08:00
Sam Lantinga
93a4e38e98
Added a way to get a framebuffer interface for a window, and also a way to create a software renderer for an arbitrary surface.
...
The software renderer has been re-routed to use the framebuffer interface, which makes it possible to have software rendering available even on simple ports.
2011-02-03 15:49:37 -08:00
Sam Lantinga
405d4ed7e4
Made it possible to create a texture of any format, even if not supported by the renderer.
...
This allows me to reduce the set of formats supported by the renderers to the most optimal set, for a nice speed boost.
2011-02-03 00:19:40 -08:00
Sam Lantinga
8bf50cc83c
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.
2011-02-02 14:34:54 -08:00
Sam Lantinga
e1e1122ee0
Fixed bug #1102
...
Check /usr/local/bin for hg before sourcing the user's bash settings
2011-01-24 17:47:18 -08:00
Sam Lantinga
eec2c075f8
Fixed bug #1103
...
The SDL_blendmode.h and SDL_scalemode.h headers needed to be added to the Public Headers and all the public headers need to have the "Public" role set.
2011-01-24 16:10:13 -08:00
Sam Lantinga
ba15b5e9b9
Fixed missing source files in static library target
...
Fixed building SDL test programs
2011-01-18 16:47:14 -08:00
Sam Lantinga
89d48a0f83
Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics.
...
Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier()
Added an atomic test adapted from code by Michael Davidsaver
2011-01-16 15:16:39 -08:00
Sam Lantinga
38e31e4598
Updated the atomic API for better use cases
2011-01-15 12:41:59 -08:00
Sam Lantinga
d44793d5c3
Final touches on renaming SDL_eventtouch to SDL_x11touch
2011-01-01 20:04:50 -08:00
Andreas Schiffler
d7a6af4ad0
Fix Xcode project to turns the SDL_gesture.h and SDL_touch.h into public includes (since they are included when using the SDL/SDL.h file)
...
--
user: Andreas Schiffler <aschiffler@ferzkopp.net>
branch 'default'
changed Xcode/SDL/SDL.xcodeproj/project.pbxproj
2010-11-16 07:44:47 -08:00
Sam Lantinga
b7c5d88e6a
Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows
2010-08-22 13:45:56 -07:00
egottlieb
b6a4181ee9
Recoded Cocoa code that got erased by... failure to commit? Merge? Eh.
2010-08-16 14:01:00 -04:00
egottlieb
c4d3ce5615
Building under OS X with command-line tools now works.
2010-08-03 23:41:57 -04:00