Commit graph

11672 commits

Author SHA1 Message Date
Sylvain Becker
51c9915b03 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
151fe7f76e Remove redundant 'SDL_GetErrBuf' declaration 2019-10-30 17:35:40 +01:00
Sylvain Becker
5ff9c8ad04 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
fb9b2cb70c revert this const parameter for X11 function 2019-10-30 16:33:32 +01:00
Sylvain Becker
1e2803ce84 Readability: remove redundant cast 2019-10-30 16:20:58 +01:00
Sylvain Becker
d46923790e Fix const warning in RLE getpix functions 2019-10-30 16:17:59 +01:00
Sylvain Becker
8d04ad1f4d SDL_syspower.c: remove redundant expression 2019-10-30 16:12:39 +01:00
Sylvain Becker
61ca65cfae Readability: change some pointer parameter to be pointer to const 2019-10-30 16:06:51 +01:00
Sylvain Becker
4acf3c3cb4 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
b4ca96449f Readability: remove redundant return, continue, enum declaration 2019-10-30 15:36:17 +01:00
Sylvain Becker
2ebaea723d Readability: remove redundant cast to the same type 2019-10-30 15:13:55 +01:00
Sylvain Becker
bab0be855d BlitAuto: remove redundant cast to the same type 2019-10-30 14:37:06 +01:00
Sylvain Becker
b72b3d0d5f Remove nested redundant #ifndef 2019-10-30 14:29:41 +01:00
Sylvain Becker
b503b72f3c 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
5e348f75e3 Use fill_function for FillRect SIMD/NEON (bug 4365) 2019-10-29 16:13:41 +01:00
Alex Szpakowski
20f38f7052 iOS: remove some unused code, minor code style cleanup. 2019-10-27 11:41:48 -03:00
Alex Szpakowski
9d1f29993c iOS: replace a deprecated function call with a non-deprecated equivalent. 2019-10-27 11:41:11 -03:00
Sylvain Becker
e36f189289 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
9a412bdf64 Android: fix compilation error of SDL_cpuinfo.c on android-r13b (bug 4365) 2019-10-27 14:52:09 +01:00
Ryan C. Gordon
1ed6be9663 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
97cd01b831 macOS: more robust detection and switching of exclusive-fullscreen display modes (bug #4822). 2019-10-26 15:27:51 -03:00
Alex Szpakowski
1df8b99b3c 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
ea68d4375d 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
d659e11a27 cpuinfo: Remove incorrect #warning when building for non-ARM architectures. 2019-10-25 00:07:30 -04:00
Ryan C. Gordon
e4bba9687d cmake: added support for enabling the ARM SIMD/NEON code. 2019-10-24 23:17:19 -04:00
Ryan C. Gordon
bafcc3737f configure: Regenerate configure script with the ARM SIMD/NEON changes. 2019-10-24 21:51:55 -04:00
Ryan C. Gordon
91539a1f69 configure: warn about MIT-licensed code if using ARM SIMD/NEON optimizations. 2019-10-24 21:41:03 -04:00
Ben Avison
e11544c11b ARM: NEON assembly optimization for SDL_FillRect
--HG--
extra : histedit_source : 05adff24c257ab385f7d3887c3a7ff9bd7bd86ff
2019-10-24 21:17:52 -04:00
Ben Avison
0b04ebbcf7 ARM: NEON assembly optimization for function BlitARGBto565PixelAlpha
--HG--
extra : histedit_source : 020eebc551604aef16e5a21e92a9b23a969393af
2019-10-24 21:17:38 -04:00
Ben Avison
3f069f458c ARM: NEON assembly optimization for function BlitRGBtoRGBPixelAlpha
--HG--
extra : histedit_source : 0c4202e02cbd677a99c1606ac622ef27e28923c1
2019-10-24 21:17:19 -04:00
Ben Avison
7ddb7981d8 ARM: Create configure option --enable-arm-neon to govern assembly optimizations
--HG--
extra : histedit_source : ae8cebdb416b6b808acab37128921d82105079cc
2019-10-24 21:17:05 -04:00
Ben Avison
ea3d342c44 ARM: SIMD optimization for 4:4:4:4 to 8:8:8:8 normal blits
--HG--
extra : histedit_source : c47e6317d65d0045a8d001fd2d43be99424ff614
2019-10-24 21:15:50 -04:00
Ben Avison
0245b373e7 ARM: assembly optimization for SDL_FillRect
--HG--
extra : histedit_source : a59d74607d4133873e77d6f4b5f046f692d8d488
2019-10-24 21:15:35 -04:00
Ben Avison
38dfe93240 ARM: SIMD assembly optimization for BGR-to-RGB 32bpp normal blits
--HG--
extra : histedit_source : 2030ded3092783d6be7055a136000b3ba5fcfb24
2019-10-24 21:15:21 -04:00
Ben Avison
194b20bc56 SDL_blit: use a named enum for required hardware bits in dispatch tables
--HG--
extra : histedit_source : 21b83b72797307b338b44027826dca63883bac72
2019-10-24 21:15:09 -04:00
Ben Avison
7b74f8dff2 ARM: SIMD assembly optimization for function BlitARGBto565PixelAlpha
--HG--
extra : histedit_source : 5fe9e97bc4fec9a85a801ede31daa2b5b4677a87
2019-10-24 21:13:56 -04:00
Ben Avison
1362ca2643 ARM: SIMD assembly optimization for function BlitRGBtoRGBPixelAlpha
Much of the heavy lifting of this optimization is lifted from the Pixman
project, which is distributed under an MIT-style license. As far as possible,
these elements have been relicensed to the zlib license.

--HG--
extra : histedit_source : c1e93e49cf2981be109d535558693e49452875bc
2019-10-24 21:13:05 -04:00
Ben Avison
fd7508ad61 ARM: Create configure option --enable-arm-simd to govern assembly optimizations
--HG--
extra : histedit_source : 12ab7dd2b55b3aea44b60ad153a73bd41d81f3fb
2019-10-24 21:12:08 -04:00
Alex Szpakowski
789caa7e85 macOS: Expose high dpi-capable display modes on macOS 10.13+.
Fixes an issue in macOS 10.15 where the displayed content would move up after entering, exiting and re-entering exclusive fullscreen when certain display modes were used (bug #4822).
Bug #3949 is also related to this change.
2019-10-24 20:15:54 -03:00
Sylvain Becker
5960887968 Fixed bug 2014 - Hardcoded srcA value in SDL_Blit_auto.c functions 2019-10-24 18:07:30 +02:00
Sylvain Becker
8bd87ca117 Fixed bug 4775 - Japanese on Android, remove inputtype PASSWORD (Thanks Tamo!) 2019-10-23 11:25:16 +02:00
Sylvain Becker
4cd69969d5 Android: remove eglGetProcAdded busted comment (bug #4040) 2019-10-23 11:07:11 +02:00
Sylvain Becker
00bccb9baf Fixed bug 4843 - Passing NULL to memset in SDL_PrivateLoadButtonMapping
(Thanks!)
2019-10-23 09:53:23 +02:00
Sylvain Becker
4f84eb70f2 Fixed bug 4842 - Redundant condition in MS_ADPCM_Decode and IMA_ADPCM_Decode
(Thanks!)
2019-10-23 09:36:41 +02:00
Sylvain Becker
71fd3d0433 Fixed bug 4840 - Read of uninitialized memory in DXGI_LoadDLL (Thanks!) 2019-10-23 09:26:27 +02:00
Sylvain Becker
a5f949624b Fixed bug 4839 - Read of uninitialized memory in Win32_ResizeWindowShape
(Thanks!)
2019-10-23 09:17:53 +02:00
Sylvain Becker
9112e9155b Fixed bug 4841 - Misplaced parenthesis WIN_WindowProc / WM_ACTIVATE / ClipCursor
(Thanks!)
2019-10-23 08:58:52 +02:00
Sylvain Becker
b9bcc1c105 Fixed bug 4838 - Use after free in SDL_JoystickUpdate (Thanks!) 2019-10-23 08:50:57 +02:00
Sylvain Becker
e2b5420f85 Fixed bug 4837 - Use after free in SDL_SensorUpdate (Thanks!) 2019-10-23 08:46:59 +02:00
Sam Lantinga
07141746e7 Fixed accidental whitespace 2019-10-22 15:43:58 -07:00