Ryan C. Gordon
1cf04be2fe
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
d8bed6eede
Static analysis fix: uninitialized value.
...
(A false positive: clang doesn't know SDL_SetError() always returns -1.)
2014-03-20 16:23:18 -04:00
Ryan C. Gordon
aad162873a
Static analysis fix: leaking Objective-C object.
2014-03-20 16:05:57 -04:00
Ryan C. Gordon
a4908f6b1b
Static analysis fix: dereference of a NULL pointer.
2014-03-20 11:22:57 -04:00
Ryan C. Gordon
dc1ff19a6a
Static analysis fix: let clang know _this->displays isn't NULL.
...
--HG--
extra : histedit_source : 99316ad09963ca7e5928612b373cbb83dfda8530
2014-03-20 11:14:02 -04:00
Ryan C. Gordon
a23e431952
Static analysis fix: division by zero.
...
--HG--
extra : histedit_source : 6f8f18284e016f09e4950279524047f97da0294a
2014-03-20 11:14:44 -04:00
Ryan C. Gordon
b006893d9c
Static analysis fix: uninitialized variables.
...
This is actually a false-positive, in this case, since Clang doesn't know
that SDL_SetError() only ever returns -1. Feature request to improve that,
with explanation about these specific SDL patches, is here:
http://llvm.org/bugs/show_bug.cgi?id=19208
--HG--
extra : amend_source : 7f0edf8fe0831e961cf800278174eebe915b3974
extra : histedit_source : 6c84fc38936198a2208e3e66b55130eb63262990
2014-03-20 10:41:47 -04:00
Ryan C. Gordon
01e9ab7668
Static analysis fix: Fixed leaking Objective-C object.
...
--HG--
extra : histedit_source : 0da11a53d41a0313aad9dc207f6b65ac5644128d
2014-03-20 10:04:23 -04:00
Ryan C. Gordon
9fd0bfe53f
Static analysis fix: bad release.
...
(object is already init'd at this point, so -[obj init] destroys
existing reference count.)
--HG--
extra : rebase_source : 31469af85f9f02d0697fc91d16fbb59834d86849
2014-03-19 23:19:34 -04:00
Andreas Schiffler
5c3a763f09
Fix visualstudio build break introduced by changeset 8645
2014-03-19 21:48:32 -07:00
Andreas Schiffler
721340f510
Add input validation to SDL_getenv/SDL_setenv; update Stdlib testsuite; add Hints testsuite
2014-03-19 21:39:55 -07:00
Ryan C. Gordon
4dd6e749db
Minor comment cleanups in checker-buildbot.sh
2014-03-19 22:43:30 -04:00
Ryan C. Gordon
320c2fa386
Static analysis fix: division by zero.
2014-03-19 18:25:21 -04:00
Ryan C. Gordon
db491f9a33
Static analysis fix: Value stored to '[bcd]' is never read.
2014-03-19 16:55:38 -04:00
Ryan C. Gordon
3c3e834e3f
Static analysis fix: "Value stored to 'p' is never read"
2014-03-19 16:52:26 -04:00
Ryan C. Gordon
e66b7588ad
Don't overwrite SDL_dynapi.h in checker-buildbot.sh.
2014-03-19 16:02:25 -04:00
Ryan C. Gordon
c40596908d
Make checker-buildbot.sh work just about anywhere Clang is installed.
2014-03-19 15:25:27 -04:00
Ryan C. Gordon
1adad7a85d
Reenable static builds for now with static analysis.
2014-03-19 13:22:09 -04:00
Ryan C. Gordon
4e85b2db83
Buildbot static analysis script: use configure script instead of cmake.
2014-03-19 03:29:14 -04:00
Ryan C. Gordon
c02d339a3b
Just build shared libraries for static analysis.
...
Building the static libs just does the same work twice.
2014-03-19 03:04:04 -04:00
Ryan C. Gordon
d728e934bf
Added a script to let buildslaves run Clang static analysis.
2014-03-19 00:58:32 -04:00
Ryan C. Gordon
ba24873506
Fixed SDL_HapticNewEffect() failing on various DirectInput devices.
2014-03-18 17:16:28 -04:00
Ryan C. Gordon
7721c23652
Fixed PS4 game controller config on Windows.
2014-03-18 12:53:01 -04:00
Ryan C. Gordon
1c0cf697c4
Whitespace fix.
2014-03-18 12:52:51 -04:00
Ryan C. Gordon
14e7c1e341
controllermap: Don't treat SDL_HAT_CENTERED as a valid input.
...
--HG--
extra : rebase_source : d3d69e6f0f44f04fb8bf910b5888a5040be579d3
2014-03-18 12:33:57 -04:00
David Ludwig
c984e9107a
Fixed a build error in SDL_platform.h when using Code Blocks and MinGW
...
winapifamily.h, a header file specific to Microsoft's Windows 8 SDK, wasn't
getting found, which was leading to a build error.
--HG--
extra : rebase_source : 59ca0a462a0c2bb578d70553a53e9421f6cfb926
2014-03-18 12:08:49 -04:00
Ryan C. Gordon
15dc860cfe
Fixed SDL_HapticOpenFromJoystick() with DirectInput devices.
2014-03-17 19:11:18 -04:00
Sam Lantinga
e4f4a38c99
Added tag release-2.0.3 for changeset 704a0bfecf75
2014-03-15 19:31:20 -07:00
Sam Lantinga
d83e91f738
Fixed iOS build
2014-03-15 19:30:52 -07:00
Sam Lantinga
c2e37c48e7
Added tag release-2.0.3 for changeset f285b9487756
2014-03-15 16:48:32 -07:00
Sam Lantinga
993135ec8b
Added a patch note for 2.0.3
2014-03-15 16:43:58 -07:00
Sam Lantinga
dfd9c3a58e
Fixed bug 2450 - Crosscompiling for Win32 with MinGW fails due to WM_UNICHAR undeclared
2014-03-15 16:32:45 -07:00
Sam Lantinga
ecc7d16d69
Only show the window if it's supposed to be shown.
2014-03-15 16:27:06 -07:00
Ryan C. Gordon
598897b601
Mac: Make sure window is still showing when we exit a fullscreen space.
...
--HG--
extra : histedit_source : 59238ebf154158241e31d46137ff70fd81f20d94
2014-03-15 15:35:15 -04:00
David Ludwig
1126e9c461
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
David Ludwig
4f443b34f0
Fixed a crash on Windows Phone 8 that occurred after rotating a device
...
This changeset prevents IDXGISwapChain::ResizeBuffers from being invoked on
Windows Phone 8, a function that isn't available on the platform (but is
available on other Windows platforms). The call would fail, which ultimately
led to a crash.
This changeset also attempts to make sure that the D3D11 swap chain is created
at the correct size, when using Windows Phone 8.
Still TODO: make sure rotation-querying works across relevant Windows
platforms (that support Direct3D 11.x).
2014-03-15 13:27:18 -04:00
David Ludwig
1d9693d456
Fixed a build error when including WinRT's SDLmain file directly in an app
2014-03-15 10:37:40 -04:00
Sam Lantinga
c73afbe0e5
Fixed Mac OS X window level when leaving fullscreen mode
2014-03-14 18:06:09 -07:00
David Ludwig
eb8fe3f2a3
Added a missing file related to WinRT power management/reporting.
...
--HG--
extra : rebase_source : 2ddf850c0e7c9eb95a6a661edb562e7b731c4aee
2014-03-14 01:36:05 -04:00
Sam Lantinga
82a301e171
Added missing copyright notices
2014-03-13 21:21:26 -07:00
Sam Lantinga
67fb6a9aa7
Fixed the copyright date on files contributed by David Ludwig
2014-03-13 00:40:08 -07:00
Sam Lantinga
0fc27bd2f5
Windows XP toolchain fix from Bruce Dawson:
...
Fix to allow using SDL when compiling with v110_xp or v120_xp -- compiling with VS2012/VS2013 with the XP targeting option.
In order to ensure that we can target Windows XP we compile with the v120_xp toolset instead of v120. This means that we use an earlier SDK version and it means that winapifamily.h is not available. Compiling for this old SDK can be detected using the _USING_V110_SDK71_ define which is set through the %(PreprocessorDefinitions) option.
2014-03-12 23:44:23 -07:00
David Ludwig
bd47906a80
Fixed line endings (CRLF to LF) in WinRT source code
2014-03-12 12:14:47 -04:00
David Ludwig
468dbccb39
Merged various WinRT build fixes
...
--HG--
rename : src/render/direct3d11/SDL_render_d3d11_winrthelpers.cpp => src/render/direct3d11/SDL_render_winrt.cpp
2014-03-12 12:12:20 -04:00
David Ludwig
7ba3100244
Fixed various build and runtime errors when using WinRT with VS2012.
2014-03-12 11:57:15 -04:00
Sam Lantinga
90cc00f217
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
ad407b378a
Fixed compiling Windows RT code on Visual Studio 2013
...
--HG--
rename : src/render/direct3d11/SDL_render_d3d11_winrthelpers.cpp => src/render/direct3d11/SDL_render_winrt.cpp
rename : src/render/direct3d11/SDL_render_d3d11_winrthelpers_cpp.h => src/render/direct3d11/SDL_render_winrt.h
2014-03-12 07:26:07 -07:00
David Ludwig
5007e2996e
Fixed compiler errors in the D3D11 renderer when building for WinRT
...
Still TODO: fix other build errors, especially linker errors, when building
SDL/WinRT, then fix any runtime errors that pop up.
--HG--
extra : rebase_source : dec261a0a61ffe463455f7d0a639f4c087e975ba
2014-03-11 12:40:31 -04:00
David Ludwig
cfebd21bdc
Made VS2012 build the D3D11 renderer
...
This change is currently limited to Win32/Windows-Desktop builds. Build fixes
for WinRT + VS2012 are still pending.
--HG--
extra : rebase_source : 1ba34b2a9a394347f5d95730eeabc3f0d7e4f197
2014-03-10 22:53:03 -04:00
Ryan C. Gordon
2067e0d28a
Disable Wayland/Mir again for 2.0.3; it's a quick, brown-paper-bag release.
...
We'll enable it by default for 2.0.4. Hopefully. :)
( http://www.catb.org/jargon/html/B/brown-paper-bag-bug.html )
--HG--
extra : rebase_source : 30eae3abc592f26538584fefcaf2dd49be3cfa89
2014-03-11 10:33:51 -04:00