f00ecf5f19
Fixed building with older Windows SDK
Sam Lantinga
2023-12-05 11:00:18 -08:00
7ca43995a1
Fixed warning C4028: formal parameter 1 different from declaration
Sam Lantinga
2023-12-05 10:55:29 -08:00
aab7432f5f
Fixed analyze warnings for SDL_dynapi_procs.h
Sam Lantinga
2023-12-04 22:05:35 -08:00
c484140f56
Fixed warning C33010: Unchecked lower bound for enum scancode used as index.
Sam Lantinga
2023-12-04 21:57:14 -08:00
02a116217d
Fixed Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).
Sam Lantinga
2023-12-04 21:55:34 -08:00
91da942b33
Fixed warning C28251: Inconsistent annotation for 'SDL_RWvprintf_REAL': this instance has no annotations.
Sam Lantinga
2023-12-04 21:54:38 -08:00
b8840801cc
Fixed analyze warnings in SDL_xinputhaptic.c
Sam Lantinga
2023-12-04 21:53:14 -08:00
8e0d728c67
Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).
Sam Lantinga
2023-12-04 21:49:49 -08:00
6a736d7766
Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'.
Sam Lantinga
2023-12-04 21:47:59 -08:00
1fcc75ba81
Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'.
Sam Lantinga
2023-12-04 21:47:10 -08:00
7f2e16db8b
Fixed warning C6340: Mismatch on sign: 'const unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'.
Sam Lantinga
2023-12-04 21:46:17 -08:00
163de8e697
Fixed warning C6001: Using uninitialized memory 'rdi'.
Sam Lantinga
2023-12-04 21:45:39 -08:00
e29393e407
Fixed warning C6001: Using uninitialized memory 'devName'.
Sam Lantinga
2023-12-04 21:44:26 -08:00
0f34ca2e71
Fixed analyze warnings in SDL_xinputjoystick.c
Sam Lantinga
2023-12-04 21:42:47 -08:00
2b5c7db645
Fixed analyze warnings in SDL_render_d3d12.c
Sam Lantinga
2023-12-04 21:38:37 -08:00
a28769759b
Fixed warning C26052: Potentially unconstrained access using expression '(signed char *)info'
Sam Lantinga
2023-12-04 21:33:27 -08:00
230581f4a8
Fixed warning C26451: Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '+' to avoid overflow (io.2).
Sam Lantinga
2023-12-04 21:28:27 -08:00
3775d9be4b
Fixed warning C28251: Inconsistent annotation for 'SDL_LogMessageV_REAL': this instance has no annotations.
Sam Lantinga
2023-12-04 21:26:49 -08:00
b512182222
Fixed warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'.
Sam Lantinga
2023-12-04 21:25:50 -08:00
8a82f7e837
Fixed warning C33005: VARIANT '&valueX' was provided as an _In_ or _InOut_ parameter but was not initialized
Sam Lantinga
2023-12-04 21:24:37 -08:00
fda039e6f8
Fixed analyzer warnings for SDL_string.c
Sam Lantinga
2023-12-04 21:21:51 -08:00
22f44aefe7
Fixed warning C6340: Mismatch on sign: 'int' passed as _Param_(3) when some unsigned type is required in call to 'SDL_sscanf_REAL'.
Sam Lantinga
2023-12-04 21:00:25 -08:00
eab2d97d07
Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2).
Sam Lantinga
2023-12-04 20:59:43 -08:00
41bfcad5d7
Fixed warning C6340: Mismatch on sign: 'unsigned short' passed as _Param_(2) when some signed type is required in call to 'SDL_SetError_REAL'.
Sam Lantinga
2023-12-04 20:58:58 -08:00
54dc73aa88
Fixed warning C6386: Buffer overrun while writing to 'palette_saved_alpha': the writable size is 'sizeof(Uint8)*((palette_saved_alpha_ncolors))' bytes, but '2' bytes might be written.
Sam Lantinga
2023-12-04 20:57:27 -08:00
0dad56354c
Fixed warning C6326: Potential comparison of a constant with another constant.
Sam Lantinga
2023-12-04 20:54:11 -08:00
c9b243fb56
Fixed warning C6263: Using _alloca in a loop: this can quickly overflow stack.
Sam Lantinga
2023-12-04 20:30:52 -08:00
3db4695ac7
warning C6340: Mismatch on sign: 'unsigned int' passed as _Param_(3) when some signed type is required in call to 'SDL_LogDebug_REAL'.
Sam Lantinga
2023-12-04 20:32:50 -08:00
c7d81d936a
Fixed warning C6031: Return value ignored: 'GetKeyboardState'.
Sam Lantinga
2023-12-04 20:28:42 -08:00
69b9d44bdc
Fixed warning C26451: Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2).
Sam Lantinga
2023-12-04 20:25:18 -08:00
a9b87ee201
Fixed warning C28159: Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem
Sam Lantinga
2023-12-04 20:22:23 -08:00
21f273ecc7
Fixed warning C6255: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead.
Sam Lantinga
2023-12-04 20:15:42 -08:00
0c4cb3d153
Fixed warning C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2).
Sam Lantinga
2023-12-04 20:01:15 -08:00
06f8f9a891
Fixed warning C6326: Potential comparison of a constant with another constant.
Sam Lantinga
2023-12-04 19:57:21 -08:00
226f8fde09
Fixed warning C28182: Dereferencing NULL pointer. 'streams[j]' contains the same NULL value as 'stream' did.
Sam Lantinga
2023-12-04 19:43:41 -08:00
fe6b3ab0b0
Fixed warning C6031: Return value ignored: 'CLSIDFromString'.
Sam Lantinga
2023-12-04 19:33:25 -08:00
f3b0149756
Fixed warning C26451: Arithmetic overflow: Using operator '*' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '*' to avoid overflow (io.2).
Sam Lantinga
2023-12-04 19:30:01 -08:00
6cfce101fb
Don't call the property cleanup function if setting the property fails
Sam Lantinga
2023-12-04 07:48:13 -08:00
14380ec48a
Fixed signed/unsigned comparison warning
Sam Lantinga
2023-12-03 14:56:21 -08:00
ac0751a652
Added SDL_strnstr()
Sam Lantinga
2023-12-03 14:42:28 -08:00
7c71e72193
SDL_render: Call InvalidateCachedState to initialise some of driverdata values (eg '*_dirty' to 1). At the earliest place, immediatly after driverdata is set. (Doing it in SDL_render.c, after creation, would be too late, because there're renderers that already use/change those values in the CreateRender() function).
Sylvain
2023-12-01 15:58:13 +01:00
058213366b
Make sure we use alpha of 0 when clearing a transparent window with no content
Sam Lantinga
2023-12-01 10:51:54 -08:00
ecd56bb8f0
Removed SDL_GetErrorMsg(), trivially implemented in application code
Sam Lantinga
2023-12-01 09:08:23 -08:00
66e532fa61
Handle out of memory errors without any allocation
Sam Lantinga
2023-12-01 09:05:04 -08:00
579681a372
fixed SDL_SCANCODE_LEFT array position in scancodes_windows.h
foobit
2023-11-30 18:44:20 -05:00
675423f096
Sync SDL3 wiki -> header
SDL Wiki Bot
2023-12-01 06:39:09 +00:00
744a29b88f
WGI: Cleanup code a bit (#8647)
Dimitriy Ryazantcev
2023-11-30 21:53:00 +02:00
e4582e6edc
Sync SDL3 wiki -> header
SDL Wiki Bot
2023-11-30 15:22:19 +00:00
df0fd55891
wikiheaders.pl: README files are no longer in Windows endline format.
Ryan C. Gordon
2023-11-30 10:10:04 -05:00
1072b6e86e
docs: fixed typo
Ryan C. Gordon
2023-11-30 10:08:23 -05:00
f184dea16c
uikit: Patched to compile.
Ryan C. Gordon
2023-11-30 00:27:17 -05:00
447b508a77
error: SDL's allocators now call SDL_OutOfMemory on error.
Ryan C. Gordon
2023-11-30 00:14:27 -05:00
70b65d4170
cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event.
Ryan C. Gordon
2023-11-29 21:38:41 -05:00
d1b831e232
include: Clarified documentation for two functions.
Ryan C. Gordon
2023-11-29 15:56:26 -05:00
daa38dc793
touch: Replace GetNumTouchDevices/GetTouchDevice with a single function.
Ryan C. Gordon
2023-11-29 13:08:52 -05:00
dd47da8a5c
gamepad: Replace GetNumMappings/GetMappingByIndex with a single function.
Ryan C. Gordon
2023-11-29 11:15:48 -05:00
dfee3f9e92
render: Replaced SDL_RenderFlush with SDL_FlushRenderer.
Ryan C. Gordon
2023-11-25 22:41:23 -05:00
eef5c53668
docs: Moved CREDITS and INSTALL to markdown format.
Ryan C. Gordon
2023-11-29 12:31:27 -05:00
f32575dfab
docs: Convert everything to Unix-style endlines.
Ryan C. Gordon
2023-11-29 11:19:31 -05:00
c5daf8adb1
testcontroller: Don't query the mapping list until after they are available.
Ryan C. Gordon
2023-11-29 10:33:31 -05:00