David Ludwig
e6f24f0b7c
build fixes for most WinRT-related files
...
Still TODO: getting the D3D11 renderer back up and running in VC 2012.
--HG--
extra : rebase_source : 16aa0948fea2b8997033ca5a09ddb9692d07edc4
2014-03-10 21:21:35 -04:00
Sam Lantinga
d16a9a6781
Fixed D3D9 initialization on Windows 8, which doesn't have D3DX
2014-03-10 17:19:19 -07:00
Sam Lantinga
1d203bd13f
Implemented fullscreen <-> windowed transition on Windows 8
2014-03-10 15:00:59 -07:00
Sam Lantinga
9d421197ef
Fixed line endings
2014-03-10 14:35:37 -07:00
Sam Lantinga
0879cd423c
Fixed creating the rendering context on a specific device
2014-03-10 12:49:15 -07:00
Sam Lantinga
aceab387be
Implemented YV12 and IYUV texture support for the D3D11 renderer
2014-03-10 05:44:34 -07:00
Sam Lantinga
821201ed49
testoverlay2 depends on SDL2, SDL2main, and SDL2test
2014-03-10 05:37:25 -07:00
Sam Lantinga
fca0b3d448
Added testoverlay2 to the Visual Studio 2013 solution
2014-03-10 03:59:47 -07:00
Sam Lantinga
5e7f7c7f4b
Minor style tweaks
2014-03-10 02:13:44 -07:00
Sam Lantinga
1348631206
Converted David Ludwig's D3D11 renderer to C and optimized it.
...
The D3D11 renderer is now slightly faster than D3D9 on my Windows 8 machine (testsprite2 runs at 3400 FPS vs 3100 FPS)
This will need tweaking to fix the Windows RT build.
--HG--
rename : src/render/direct3d11/SDL_render_d3d11.cpp => src/render/direct3d11/SDL_render_d3d11.c
2014-03-10 01:51:03 -07:00
Sam Lantinga
e012b4eb5d
Fixed renderer flags to include support for target textures after the renderer is created.
2014-03-09 22:48:38 -07:00
Ryan C. Gordon
5b8f5159f3
Removed unused variable.
2014-03-10 00:48:41 -04:00
Ryan C. Gordon
be08a25265
Updated WinCE readme to note WinRT work.
2014-03-10 00:31:31 -04:00
Ryan C. Gordon
da923dad2b
Turn off Mir support in the buildbot Raspberry Pi script.
2014-03-10 00:26:40 -04:00
Ryan C. Gordon
aff242c8b6
Drop the default requested OpenGL version to 1.2.
...
Fixes default context creation on Mac OS X <= 10.6.
--HG--
extra : rebase_source : e8cb3a139e6af51f94929203d1046665e0d2c438
extra : histedit_source : fa77978715a878180315ea637d08d788cee94e93%2C12a503d312aeafe7669f059b1644cb04ce994b82
2014-03-10 00:01:14 -04:00
Sam Lantinga
d93a676e23
Fixed 64-bit warnings
2014-03-09 12:27:31 -07:00
Sam Lantinga
6dd7c515f6
Fixed compiling with mingw64
2014-03-09 12:08:07 -07:00
Sam Lantinga
a7d2ebb8d6
Integrated David Ludwig's support for Windows RT
2014-03-09 11:36:47 -07:00
Sam Lantinga
211b54deef
Fixed line endings on WinRT source code
2014-03-09 11:06:11 -07:00
Sam Lantinga
b821f84418
Updated SDL to version 2.0.3
2014-03-09 10:38:30 -07:00
Sam Lantinga
f6e1a153be
Visual Studio 2013 project updates
2014-03-09 10:37:45 -07:00
Ryan C. Gordon
e0f70ee928
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
08b3e512b9
Patched to compile on C89 compilers.
2014-03-08 15:34:54 -05:00
Ryan C. Gordon
9dbbedbea0
Enable Wayland and Mir in configure/cmake scripts, now that 2.0.2 has shipped.
2014-03-08 15:32:12 -05:00
Sam Lantinga
09d2119c58
Added tag release-2.0.2 for changeset be2102f000d0
2014-03-07 23:16:24 -08:00
Ryan C. Gordon
057c292553
CMake: Don't use /NODEFAULTLIB on Windows unless we're Visual Studio.
2014-03-07 00:18:37 -05:00
Sam Lantinga
32bf53df4e
Fixed bug 2430 - Missing initialization of the variable 'centroid' inside SDL_GestureAddTouch
...
klose
File: SDL_gesture.c
Method: SDL_GestureAddTouch
When a new SDL_GestureTouch element is added to the global SDL_gestureTouch array the variable 'centroid' of the new element is not initialized.
The problem is that this variable is read isndie SDL_GestureProcessEvent when a SDL_FINGERDOWN event occurs.
2014-03-06 20:02:17 -08:00
David Ludwig
780830080b
WinRT: emit SDL_APP_TERMINATING
2014-03-04 19:49:11 -05:00
David Ludwig
e5e0e486fe
WinRT: emit SDL_APP_WILLENTER* and SDL_APP_DIDENTER* events
2014-03-04 19:30:36 -05:00
Ryan C. Gordon
faf8781497
Mac: Added a hint to opt-out of new Spaces code.
2014-03-03 21:25:16 -05:00
Ryan C. Gordon
28ab3cb756
Removed unused variable.
2014-03-02 22:55:12 -05:00
Ryan C. Gordon
fab30f987c
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
7e0a86800d
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
3f41dc1c92
A bunch of fixes for the new Spaces code.
...
--HG--
extra : rebase_source : 411c90597aaf0f5d30cb5efde652696bbb45497c
2014-03-02 16:36:40 -05:00
Sam Lantinga
1a4a891233
Fixed dictionary initialization
2014-03-02 13:06:51 -08:00
Sam Lantinga
d8a4f1ea9d
Updated to build on Mac OS X 10.7 with Xcode 4.6
2014-03-02 12:58:00 -08:00
Ryan C. Gordon
abd5c75f1a
Mac: Manage menubar and dock as FULLSCREEN_DESKTOP windows become/resign key.
2014-03-02 15:35:24 -05:00
Bastien Nocera
baf56fe069
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
--HG--
extra : rebase_source : b1967a91febdaa3f0fcb311ee1909a741722e9b2
2014-03-02 14:59:06 -05:00
Sam Lantinga
bb993d3a3b
Backed out changeset a6493ee0c9b5
2014-03-02 11:10:00 -08:00
Sam Lantinga
5624855166
Make sure we return version 0 if XInput detection fails
2014-03-02 11:08:05 -08:00
Ryan C. Gordon
afa70ff8df
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
88bdcd6a28
Better attempt to detect available X11 XInput2 features.
...
Fixes Bugzilla #2306 .
2014-03-02 02:00:40 -05:00
Ryan C. Gordon
a5a1ae956b
Fixed X11 XInput2 multitouch test to work in configure script.
...
configure wraps this C code in a main() function, so you can't declare a
function body in there. Besides, I'm not sure why we declared a function
that's part of the multitouch API anyhow.
Now we just reference a type that only exists if the headers have multitouch
support and call it a day.
2014-03-02 01:59:25 -05:00
Ryan C. Gordon
5f11f71362
Windows: Fixed crash if quitting without closing an XInput haptic device.
...
--HG--
extra : histedit_source : ddde0349ad87c7b525efb7e0b01ee45fef9170af
2014-03-02 00:02:56 -05:00
Ryan C. Gordon
ae216dde6c
Added a FIXME.
2014-03-01 22:27:21 -05:00
Ryan C. Gordon
8135173e3f
Fixed a typo in a comment.
2014-03-01 22:27:13 -05:00
Ryan C. Gordon
f0cc3c2e56
Dynamically load glGetString(), to avoid direct dependency on OpenGL.
2014-03-01 21:33:48 -05:00
Ryan C. Gordon
81801cb940
Added some FIXMEs.
2014-03-01 20:59:43 -05:00
Ryan C. Gordon
d954bb23ac
Mac OS X: Make OpenGL context selection more robust, avoid software fallback.
...
Fixes Bugzilla #2197 .
2014-03-01 20:46:45 -05:00
Ryan C. Gordon
267f8fb155
Force Windows version of SDL_GetPrefPath() to Unicode, create missing dirs.
...
Fixes Bugzilla #2273 .
2014-03-01 20:28:40 -05:00