David Ludwig
119dff5546
WinRT: Implemented SDL_ShowMessageBox for Windows 8.x/RT hosts
...
This change does not include message box support for Windows Phone 8, which does
not offer the same message box APIs that Windows 8.x/RT does.
2014-03-23 22:07:01 -04:00
Sam Lantinga
c3d1037665
Better keyboard detection when some of the keys are remapped, thanks to Lewis Wall
2014-03-23 09:44:04 -07:00
David Ludwig
823bf72130
WinRT globals cleanup: Removed WINRT_GlobalSDLVideoDevice
2014-03-22 21:08:05 -04:00
David Ludwig
b51a3206c8
WinRT: Got OpenGL ES 2 working with the latest version of ANGLE/WinRT.
...
SDL/WinRT did have support for OpenGL ES 2 via an older version of ANGLE/WinRT,
however its API changed a few months ago, and SDL/WinRT would crash when trying
to use it. It would also occasionally crash when using the older version.
This changeset should make SDL/WinRT work with the latest version, as
available via MS Open Tech's git repository of it at
https://github.com/msopentech/angle
Older versions of ANGLE/WinRT (from either https://github.com/stammen/angleproject
or https://bitbucket.org/DavidLudwig/angleproject ) will need to be updated to
MS Open Tech's latest version.
2014-03-22 20:48:18 -04:00
Ryan C. Gordon
cc52939853
Static analysis fix: more cleanups of unused variables, etc, in blitters.
2014-03-21 10:40:15 -04:00
Ryan C. Gordon
7bf36abfc0
Static analysis fix: more dead stores.
2014-03-21 00:57:43 -04:00
Ryan C. Gordon
e177b1cc49
Static analysis fix: clean up unused variables and dead stores in blitters.
2014-03-20 17:55:24 -04:00
Ryan C. Gordon
3aae0ed2c5
Static analysis fix: uninitialized data.
...
(This is Clang not knowing that SDL_SetError() always returns -1.)
2014-03-20 16:54:20 -04:00
Ryan C. Gordon
d7a253b5ec
Static analysis fix: uninitialized data.
...
(Clang doesn't know that "_this" was already checked for NULLness elsewhere.)
2014-03-20 16:25:30 -04:00
Ryan C. Gordon
a25bd63cc5
Static analysis fix: leaking Objective-C object.
2014-03-20 16:05:57 -04:00
Ryan C. Gordon
84b919a2a7
Static analysis fix: dereference of a NULL pointer.
2014-03-20 11:22:57 -04:00
Ryan C. Gordon
b99a6253da
Static analysis fix: let clang know _this->displays isn't NULL.
2014-03-20 11:14:02 -04:00
Ryan C. Gordon
1a2a3e9c8b
Static analysis fix: Fixed leaking Objective-C object.
2014-03-20 10:04:23 -04:00
Ryan C. Gordon
bcc2ed09b5
Static analysis fix: bad release.
...
(object is already init'd at this point, so -[obj init] destroys
existing reference count.)
2014-03-19 23:19:34 -04:00
Ryan C. Gordon
faaaf6c572
Static analysis fix: "Value stored to 'p' is never read"
2014-03-19 16:52:26 -04:00
Sam Lantinga
56b40ce046
Fixed bug 2450 - Crosscompiling for Win32 with MinGW fails due to WM_UNICHAR undeclared
2014-03-15 16:32:45 -07:00
Sam Lantinga
9245c93044
Only show the window if it's supposed to be shown.
2014-03-15 16:27:06 -07:00
Ryan C. Gordon
c663d731f1
Mac: Make sure window is still showing when we exit a fullscreen space.
2014-03-15 15:35:15 -04:00
David Ludwig
f25ee50b03
Fixed broken rotation detection routines on WinRT
...
Rotation detection and handling should now work across all, publicly-released,
WinRT-based platforms (Windows 8.0, Windows 8.1, and Windows Phone 8.0).
2014-03-15 14:54:23 -04:00
Sam Lantinga
26e8e387e1
Fixed Mac OS X window level when leaving fullscreen mode
2014-03-14 18:06:09 -07:00
Sam Lantinga
f9a5896819
Added missing copyright notices
2014-03-13 21:21:26 -07:00
Sam Lantinga
ed02f61da1
Fixed the copyright date on files contributed by David Ludwig
2014-03-13 00:40:08 -07:00
Sam Lantinga
641ba09975
Fixed compiling Windows RT code on Visual Studio 2013
2014-03-12 07:26:07 -07:00
Sam Lantinga
b677d1d883
Fixed Mac OS X OpenGL context creation to match other backends, where we only care about the actual version we request if it's 3.0 or newer or a special profile context.
...
Eventually we'll probably move the version checking to higher level code and report the actual version of context that got created, but to avoid breakage we'll leave it like this for now.
2014-03-10 19:59:06 -07:00
Sam Lantinga
28398109a1
Fixed regression causing the renderer to recreate its window since it's not getting an OpenGL 2.1 context anymore.
2014-03-10 18:45:07 -07:00
David Ludwig
e8eb142748
build fixes for most WinRT-related files
...
Still TODO: getting the D3D11 renderer back up and running in VC 2012.
2014-03-10 21:21:35 -04:00
Ryan C. Gordon
89648a9a3c
Drop the default requested OpenGL version to 1.2.
...
Fixes default context creation on Mac OS X <= 10.6.
2014-03-10 00:01:14 -04:00
Sam Lantinga
1367bf8748
Integrated David Ludwig's support for Windows RT
2014-03-09 11:36:47 -07:00
Sam Lantinga
05c23063bb
Fixed line endings on WinRT source code
2014-03-09 11:06:11 -07:00
Ryan C. Gordon
db568d69d8
Patched to compile with MingW64 on case-sensitive systems (thanks, Martin!).
...
Fixes Bugzilla #2440 .
2014-03-09 11:52:52 -04:00
Ryan C. Gordon
5755fa4b9e
Patched to compile on C89 compilers.
2014-03-08 15:34:54 -05:00
Ryan C. Gordon
9e67444a36
Mac: Added a hint to opt-out of new Spaces code.
2014-03-03 21:25:16 -05:00
Ryan C. Gordon
3889d47887
Removed unused variable.
2014-03-02 22:55:12 -05:00
Ryan C. Gordon
0e5cc8dff4
Mac: Don't lose the menu/dock when switching back to a resizable window Space.
2014-03-02 22:51:31 -05:00
Ryan C. Gordon
86be83215a
Mac: only programmatically create Spaces if we're FULLSCREEN_DESKTOP.
...
(coming back from fullscreen in any state is okay).
2014-03-02 22:16:49 -05:00
Ryan C. Gordon
460f97ff96
A bunch of fixes for the new Spaces code.
2014-03-02 16:36:40 -05:00
Sam Lantinga
da324233e2
Fixed dictionary initialization
2014-03-02 13:06:51 -08:00
Sam Lantinga
0f9bb0cda6
Updated to build on Mac OS X 10.7 with Xcode 4.6
2014-03-02 12:58:00 -08:00
Ryan C. Gordon
5eccbac4b9
Mac: Manage menubar and dock as FULLSCREEN_DESKTOP windows become/resign key.
2014-03-02 15:35:24 -05:00
Bastien Nocera
4ca76b3e59
Add support for the freedesktop.org Idle Inhibition specification,
...
as per:
http://people.freedesktop.org/~hadess/idle-inhibition-spec/
This makes screensaver inhibition work with GNOME 3 and other
desktop environments that implement the specification.
https://bugzilla.libsdl.org/show_bug.cgi?id=2169
2014-03-02 14:59:06 -05:00
Sam Lantinga
c2c08f68e4
Backed out changeset 9357a2ca3473
2014-03-02 11:10:00 -08:00
Sam Lantinga
2cf453dd3e
Make sure we return version 0 if XInput detection fails
2014-03-02 11:08:05 -08:00
Ryan C. Gordon
51faf449bb
Reworked fullscreen policy on Mac OS X.
...
- SDL_WINDOW_FULLSCREEN works as always (change resolution, lock to window).
- SDL_WINDOW_FULLSCREEN_DESKTOP now puts the window in its own Space, and
hides the menu bar, but you can slide between Spaces and Command-Tab between
apps without the window minimizing, etc.
- SDL_WINDOW_RESIZABLE windows will get the new 10.7+ "toggle fullscreen"
window decoration and menubar item. As far as the app is concerned, this is
no different than resizing a window, but it gives the end-user more power.
- The hint for putting fullscreen windows into the Spaces system is gone,
since Spaces can't enforce the requested resolution. It's a perfect match
for FULLSCREEN_DESKTOP, though, so this is all automated now.
2014-03-02 12:45:51 -05:00
Ryan C. Gordon
afc74d9843
Better attempt to detect available X11 XInput2 features.
...
Fixes Bugzilla #2306 .
2014-03-02 02:00:40 -05:00
Ryan C. Gordon
bafa4c7ae8
Dynamically load glGetString(), to avoid direct dependency on OpenGL.
2014-03-01 21:33:48 -05:00
Ryan C. Gordon
99583397e6
Mac OS X: Make OpenGL context selection more robust, avoid software fallback.
...
Fixes Bugzilla #2197 .
2014-03-01 20:46:45 -05:00
David Ludwig
6687ece1d5
WinRT: cleaned up some hard-to-read SDL_DisplayMode management code
2014-03-01 16:37:30 -05:00
David Ludwig
f4a5a0fad1
WinRT: fixed a crash in SDL_Quit
...
SDL was expected that each SDL_DisplayMode had a driverdata field that was SDL_malloc'ed, and was calling SDL_free on them. This change moves WinRT's driverdata content into a SDL_malloc'ed field.
2014-03-01 16:08:16 -05:00
Sam Lantinga
54ba385b4e
Fixed compiler warning
2014-03-01 11:42:12 -08:00
Sam Lantinga
86655b64ef
Fixed compiler warning
2014-03-01 11:40:41 -08:00