Sam Lantinga
a110eacfdd
Added a utility function to simplify the hint handling logic
2019-11-13 21:53:01 -08:00
Sam Lantinga
3c1d4a14e2
Supported Android and Apple hardware has ARM SIMD capability
2019-11-13 15:46:58 -08:00
Sam Lantinga
ec197b00c7
SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS defaults to true, to match Steam's default behavior
2019-11-13 14:24:48 -08:00
Anuj Mittal
65bf5eeccb
configure: check for build dir when building version res (fix bug #4858 )
...
Fixes a race where we try to build version res file in build directory
before it has even been created. Prevents errors like:
/bin/bash ../SDL2-2.0.10/build-scripts/updaterev.sh
/bin/bash ../SDL2-2.0.10/build-scripts/mkinstalldirs build
mkdir -p -- build
x86_64-pokysdk-mingw32-windres --include-dir=/home/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/x86_64-nativesdk-mingw32-pokysdk-mingw32/nativesdk-libsdl2/2.0.10-r0/recipe-sysroot/opt/poky/3.0/sysroots/x86_64-pokysdk-mingw32/usr/include ../SDL2-2.0.10/src/main/windows/version.rc build/version.o
x86_64-pokysdk-mingw32-windres: build/version.o: No such file or directory
Makefile:692: recipe for target 'build/version.o' failed
make: *** [build/version.o] Error 1
make: *** Waiting for unfinished jobs....
touch build/.created
WARNING: exit code 1 from a shell command.
Extension of fix:
https://hg.libsdl.org/SDL/rev/99d8b18acf8a
Signed-off-by: Anuj Mittal <am.devel@gmail.com >
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2019-11-13 10:51:02 +03:00
EXL
0291734479
haiku: Rename BE_* entities to HAIKU_*
...
In favor Bugzilla #2349 .
Update copyright years to 2019.
Partially fixes Bugzilla #4442 .
2019-11-12 17:24:37 -05:00
Peter Kosyh
141deeaeb9
haiku: mouse_relative fix
...
Partially fixes Bugzilla #4442 .
2019-11-11 22:23:33 -05:00
Peter Kosyh
6368d67967
haiku: mouse->ShowMouse method added
...
Partially fixes Bugzilla #4442 .
2019-11-11 22:22:40 -05:00
Gerasim Troeglazov
af8741e7fb
haiku: Add support for relative mouse mode.
...
Partially fixes Bugzilla #4442 .
2019-11-11 22:21:17 -05:00
Gerasim Troeglazov
d103e13ad5
haiku: Add simple relative mode for mouse.
...
Partially fixes Bugzilla #4442 .
2019-11-11 22:18:21 -05:00
Adrien Destugues
df7259cda8
haiku: Fix crash when opening window.
...
- _num_clips was not set in constructor, so a NULL _clips could be
mistakenly dereferenced.
- As _clips is accessible outside the class, it is not a good idea to
free/reallocate it. Try to limit this by reallocating only when it needs to
grow.
Partially fixes Bugzilla #4442 .
2019-11-11 22:14:00 -05:00
Jerome Duval
19a29074f5
haiku: use addr_t instead of size_t for OpenGL dynamic loading.
...
Partially fixes Bugzilla #4442 .
2019-11-11 22:04:10 -05:00
Peter Kosyh
42a3b9b9f6
haiku: Invert mouse wheel values to match what SDL expects.
...
Partially fixes Bugzilla #4442 .
2019-11-11 21:59:39 -05:00
EXL
3fedf47c35
haiku: Implement message box for Haiku
...
Add implementation for functions:
SDL_ShowSimpleMessageBox()
SDL_ShowMessageBox()
Add simple customization support also.
Fix build for x86_gcc2.
Partially fixes Bugzilla #4442 .
2019-11-11 16:44:40 -05:00
Ozkan Sezer
1348a9d33e
ran gendynapi.pl after SDL_HasARMSIMD() addition
2019-11-04 11:15:24 +03:00
Ryan C. Gordon
4797b53169
Fixed a comment typo (thanks, Dominus!).
...
https://twitter.com/iniquitatis/status/1190064278365188102
2019-11-01 04:32:44 -04:00
Sylvain Becker
14be4e67d0
Android: some readability: redundant casts, deads stores, redundant control flow
2019-10-31 15:53:10 +01:00
Ozkan Sezer
07a8d6efb8
SDL_qsort.c: sync comments with version 1.15 from mainstream
2019-10-31 17:10:02 +03:00
Sylvain Becker
f98c393fe6
Wayland: touch events, use of memory after it is freed
2019-10-30 21:12:36 +01:00
Sylvain Becker
6f0685f740
Use correct enum: typo in org_kde_kwin_server_decoration_mode
...
instead of org_kde_kwin_server_decoration_manager_mode
2019-10-30 17:59:20 +01:00
Sylvain Becker
d6cda0e386
Remove redundant 'SDL_GetErrBuf' declaration
2019-10-30 17:35:40 +01:00
Sylvain Becker
85cb0d3d61
SDL_render_gles2: remove ineffective widening cast
...
warning: either cast from 'int' to 'size_t' (aka 'unsigned long') is ineffective, or there is loss of precision before the conversion [bugprone-misplaced-widening-cast]
2019-10-30 16:45:53 +01:00
Sylvain Becker
696de33536
revert this const parameter for X11 function
2019-10-30 16:33:32 +01:00
Sylvain Becker
f9609a38e7
Readability: remove redundant cast
2019-10-30 16:20:58 +01:00
Sylvain Becker
dc53d8a876
Fix const warning in RLE getpix functions
2019-10-30 16:17:59 +01:00
Sylvain Becker
3d621be1b1
SDL_syspower.c: remove redundant expression
2019-10-30 16:12:39 +01:00
Sylvain Becker
2d3bdd05dc
Readability: change some pointer parameter to be pointer to const
2019-10-30 16:06:51 +01:00
Sylvain Becker
d5ee35b300
Readability: remove const-qualifation from function declaration
...
const-qualification of parameters only has an effect in function definitions
2019-10-30 15:43:49 +01:00
Sylvain Becker
36cca1d180
Readability: remove redundant return, continue, enum declaration
2019-10-30 15:36:17 +01:00
Sylvain Becker
bb6c28da07
Readability: remove redundant cast to the same type
2019-10-30 15:13:55 +01:00
Sylvain Becker
443135b183
BlitAuto: remove redundant cast to the same type
2019-10-30 14:37:06 +01:00
Sylvain Becker
fdd8f8b3ae
Remove nested redundant #ifndef
2019-10-30 14:29:41 +01:00
Sylvain Becker
a3c11b7609
SDL_syspower: remove dead store warning
...
Value stored to 'str' during its initialization is never read
2019-10-30 14:26:18 +01:00
Sylvain Becker
b73f111094
Use fill_function for FillRect SIMD/NEON (bug 4365)
2019-10-29 16:13:41 +01:00
Alex Szpakowski
7314d88b52
iOS: remove some unused code, minor code style cleanup.
2019-10-27 11:41:48 -03:00
Alex Szpakowski
9d4cd8b9b1
iOS: replace a deprecated function call with a non-deprecated equivalent.
2019-10-27 11:41:11 -03:00
Sylvain Becker
45c3e419d3
Android: remove warning in blit_features
...
"integer constant not in range of enumerated type 'enum blit_features'"
2019-10-27 15:22:28 +01:00
Sylvain Becker
ec5f9e0cda
Android: fix compilation error of SDL_cpuinfo.c on android-r13b (bug 4365)
2019-10-27 14:52:09 +01:00
Ryan C. Gordon
7606796d6a
x11: check if the X server honored our XMoveWindow() call (thanks, R.E. Rust!).
...
This can happen if a window is still grabbed when we try to move it, or if
the X11 ecosystem is just in a bad mood, I guess.
This makes sure that SDL will report the correct position for a window;
otherwise, SDL_GetWindowPosition will just report whatever the last
SDL_SetWindowPosition call requested, even if the window didn't actually move.
Fixes Bugzilla #4646 .
2019-10-26 23:58:55 -04:00
Alex Szpakowski
9457cfa86b
macOS: more robust detection and switching of exclusive-fullscreen display modes (bug #4822 ).
2019-10-26 15:27:51 -03:00
Alex Szpakowski
6f44302fe8
macOS Fix potential memory leaks in the Metal renderer caught by clang's static analyzer.
2019-10-26 14:39:50 -03:00
Ryan C. Gordon
e2e0748cfe
d3d11: Don't fail if there's no vertex data to upload (thanks, Martin!).
...
Fixes Bugzilla #4832 .
2019-10-26 12:56:18 -04:00
Ryan C. Gordon
58a90b932d
cpuinfo: Remove incorrect #warning when building for non-ARM architectures.
2019-10-25 00:07:30 -04:00
Ryan C. Gordon
46afc69853
cmake: added support for enabling the ARM SIMD/NEON code.
2019-10-24 23:17:19 -04:00
Ryan C. Gordon
a396a7a059
configure: Regenerate configure script with the ARM SIMD/NEON changes.
2019-10-24 21:51:55 -04:00
Ryan C. Gordon
67ec22ea30
configure: warn about MIT-licensed code if using ARM SIMD/NEON optimizations.
2019-10-24 21:41:03 -04:00
Ben Avison
06d6c4ba2b
ARM: NEON assembly optimization for SDL_FillRect
2019-10-24 21:17:52 -04:00
Ben Avison
14ccfe34cf
ARM: NEON assembly optimization for function BlitARGBto565PixelAlpha
2019-10-24 21:17:38 -04:00
Ben Avison
f15ffb4cb6
ARM: NEON assembly optimization for function BlitRGBtoRGBPixelAlpha
2019-10-24 21:17:19 -04:00
Ben Avison
51bb185151
ARM: Create configure option --enable-arm-neon to govern assembly optimizations
2019-10-24 21:17:05 -04:00
Ben Avison
2a2676beb2
ARM: SIMD optimization for 4:4:4:4 to 8:8:8:8 normal blits
2019-10-24 21:15:50 -04:00