Petar Popovic
43f3991398
linux/SDL_syshaptic.c:SDL_SYS_HapticStopAll(): Fix return on error
2025-08-09 09:27:35 -07:00
Petar Popovic
d4819db5e6
SDL_waylandvideo.c:display_remove_global(): Check pointer when removing mouse
2025-08-09 07:37:40 -07:00
Petar Popovic
d9c20cfd0a
SDL_SendJoystickVirtualSensorDataInner(): Fix max_sensor_events increment
2025-08-08 12:48:06 -07:00
Petar Popovic
b63c32e790
SDL_SetRenderDrawBlendMode(): Remove redundant param check
2025-08-08 14:05:33 -04:00
Petar Popovic
23e08f7807
SDL_LoadWAV_IO(): On error, set *audio_buf to NULL and *audio_len to 0
2025-08-03 13:44:10 -04:00
Petar Popovic
faf3bd9991
SDL_enabled_assert(): Use NULL istead of 0 to explicity initialize the pointer members of SDL_AssertData
2025-08-03 13:33:48 -04:00
Petar Popovic
ae5ce258cf
Fix double-free warning in src/hidapi/linux/hid.c
2025-08-02 07:08:35 -07:00
Petar Popovic
1749aba641
Fixed a few "-Wredundant-decls" warnings
2025-08-01 18:35:02 +03:00
Petar Popovic
09221820f6
Fix potential memory leak in SDL_render_gles2.c
2025-07-31 16:18:47 -07:00
Petar Popovic
f27dbb22f0
Fix two use-after-free warnings
2025-07-29 12:29:19 -07:00
Petar Popovic
beea8d604e
Replaced binary integer literals with hexadecimal integer literals
2025-07-29 06:34:38 -07:00
Petar Popovic
dc1bf60b15
SDL_waylanddatamanager.c:Wayland_data_offer_check_source(): Return when offer is NULL
2025-07-28 11:25:14 -04:00
Petar Popovic
6a5af95364
SDL_gpu.c: Fixed deref-before-check warning
2025-07-26 12:08:23 -07:00
Petar Popovic
2c2c2c5a48
Fixed a few "-Wstrict-prototypes" warnings
2025-07-26 11:12:40 -07:00
Petar Popovic
3cd979b353
SDL_render.h: enum SDL_TextureAddressMode: Removed trailing comma
2025-06-24 21:56:20 +03:00
Petar Popovic
27b256022b
SDL_GetRectIntersectionFloat(): Allow rendering zero-sized srcrect
2025-04-23 16:14:52 -07:00
Petar Popovic
fe849f1572
SDL_BlitSurfaceScaled(): Do not divide by zero
2025-04-22 13:02:40 -07:00
Petar Popovic
8017d38adc
SDL_BlitSurfaceScaled(): Do not blit if surfaces have no pixel data
2025-04-22 13:00:39 -07:00
Petar Popovic
a696b108ac
SDL_BlitSurface() comment: Remove sentence about final blit rect being stored in srcrect and dstrect
2025-04-22 10:21:36 -07:00
Petar Popovic
00f316737b
Progress bar comment changes
2025-03-26 08:54:30 -07:00
Petar Popovic
035d9179a5
WIN_SetWindowProgressState(): Unsupported parameter error message
2025-03-23 10:32:19 -07:00
Petar Popovic
c217663fba
SDL_SetWindowProgressState(): Add parameter validation check for state
2025-03-23 10:00:27 -07:00
Petar Popovic
fa0a86409c
Additions to progress bar comments
2025-03-23 08:57:22 -07:00
Petar Popovic
721476033c
SDL_SetWindowProgressValue(): Move value clamp from WIN_SetWindowProgressValue() to SDL_SetWindowProgressValue()
2025-03-23 08:56:18 -07:00
Petar Popovic
a3be7a137a
WIN_SetWindowProgressValue(): Fix value clamp
2025-03-23 07:51:49 -07:00
Petar Popovic
ad11c6988c
src/io/SDL_asyncio.c:SDL_AsyncIOFromFile(): Fix null-dereference warning
2025-02-23 11:12:24 -08:00
Petar Popovic
b5297de56f
Add 'const' to pointer parameters
2025-02-21 15:59:40 -08:00
Petar Popovic
c70f54e28b
Remove redundant casts
2025-02-21 10:09:10 -08:00
Petar Popovic
6aef6ae9a8
AddPulseAudioDevice(): Fix use-after-free
2025-02-17 11:12:44 -08:00
Petar Popovic
045a4492f1
test/testaudio.c: Fix use-after-free warning
2025-02-16 19:35:54 -08:00
Petar Popovic
da2460f9e7
test/testautomation_audio.c: Free variables before returning
2025-02-16 16:57:56 -08:00
Petar Popovic
831fc70923
test/testautomation_intrinsics.c: Free variables before returning
2025-02-16 07:50:07 -08:00
Petar Popovic
c6a3b5b6ef
src/test/SDL_test_harness.c: Free variables before returning
2025-02-15 21:00:04 -08:00
Petar Popovic
c16b7bcb7a
SDL_Get*Driver() functions: Set error message on failure
2025-02-13 16:10:37 -08:00
Petar Popovic
5dce8c748f
SDL_GetRelativeMouseState(): Get relative mouse position also when relative mouse mode is disabled
2025-02-13 11:34:24 -08:00
Petar Popovic
80653a42c7
Remove non-ASCII character from public header SDL_hints.h
2025-02-06 12:10:16 -08:00
Petar Popovic
68dabd48c4
SDL_GetTrayEntries(): Rename parameter size to count
2025-02-05 07:44:46 -08:00
Petar Popovic
f1b3523c67
Remove redundant parenthesis in SDL_MUSTLOCK macro
2025-02-03 19:47:16 -08:00
Petar Popovic
8527d042bc
Remove const from parameter of inline function SDL_RectsEqualEpsilon()
2025-02-03 19:46:36 -08:00
Petar Popovic
8ccf85c59e
Formatting spaces around pointer symbol.
2025-02-03 17:03:26 -08:00
Petar Popovic
31364477f2
Rename parameter of type SDL_CameraID from devid to instance_id
2025-01-29 17:49:53 -08:00
Petar Popovic
36758d70c9
Rename parameters of type SDL_AudioDeviceID from dev to devid
2025-01-29 14:44:08 -08:00
Petar Popovic
6f098a920e
Avoid a crash when a tray without a menu is clicked on Windows.
2025-01-26 23:27:28 -08:00
Petar Popovic
a336b62d8b
Remove newlines from error messages
2025-01-23 11:45:04 -08:00
Petar Popovic
983cfe8b1c
Remove even more newlines from log messages
2025-01-23 09:32:50 -08:00
Petar Popovic
8ce176b59a
SDL_GetMouseNameForID(): Set an error message for invalid mouse IDs.
2025-01-14 23:59:49 -08:00
Petar Popovic
f3cbd04a81
Fix C99 trailing enum comma warning.
2024-12-30 17:21:02 +03:00
Petar Popovic
5f25691c85
Fix C23 empty initializer warning.
2024-12-29 18:17:24 -08:00
Petar Popovic
96729e745a
SDL_GetClosestFullscreenDisplayMode(): Rename parameter mode to closest
...
Also: Check, if the parameter is NULL inside the function.
2024-11-03 21:03:44 -08:00
Petar Popovic
73e0e8cf5b
SDL_GetDisplayForPoint(), SDL_GetDisplayForRect(): Check argument for NULL.
2024-11-03 07:55:07 -08:00
Petar Popovic
cb0c7c9680
SDL_CreateDirectory(): directory tree creation for absolute paths for non-Windows platforms
2024-10-28 01:56:48 -04:00
Petar Popovic
a10578acbd
SDL_SYS_RenamePath(): Fix error message.
2024-10-27 16:54:13 -07:00
Petar Popovic
04a478b6a9
SDL_Enumerate[Storage]Directory() comments: Use enum constant names instead of integers.
2024-10-27 14:41:33 -07:00
Petar Popovic
8468c372b2
SDL_EnumerateDirectory(): (posix) Fix return value when directory is invalid
2024-10-25 22:52:56 -07:00
Petar Popovic
db4e2ccbac
Allow redefinition of only one macro SDL_SINT64_C SDL_UINT64_C
2024-10-24 07:37:44 -07:00
Petar Popovic
540db0d164
Bumped version of macro 'main' to 3.1.3
2024-10-23 16:16:07 -04:00
Petar Popovic
5e855d82e3
Manually bump versions of non-function identifiers introduced after 3.1.3 to 3.2.0
2024-10-23 11:17:46 -07:00
Petar Popovic
fd530d029f
Fixed typo in SDL_clipboard.h
2024-10-22 22:41:30 -07:00
Petar Popovic
af1c165352
Set version of new identifiers after 3.1.3 release to 3.1.6
2024-10-22 22:40:07 -07:00
Petar Popovic
4b54e32231
Tweak android path functions comment tag \sa
2024-10-20 16:38:07 -07:00
Petar Popovic
679dd4b181
SDL_RequestAndroidPermission() comment: Add link to android permissions website
2024-10-20 10:13:03 -04:00
Petar Popovic
5819d4b360
SDL_CreateRenderer() comment: Remove mention of flags
2024-10-20 10:12:14 -04:00
Petar Popovic
6897385623
Add void to run_colorspace_test() function prototype
2024-10-16 11:16:42 -07:00
Petar Popovic
3086b25c4e
Set hint SDL_HINT_MAC_SCROLL_MOMENTUM version to SDL 3.1.4.
2024-10-11 17:33:52 -07:00
Petar Popovic
6d85127560
Rename hint string literal SDL_HINT_MAC_SCROLL_MOMENTUM
2024-10-10 16:16:36 -07:00
Petar Popovic
b6ab7d28f6
Replaced \r\n with \n in SDL root files
2024-10-05 18:15:02 -07:00
Petar Popovic
d4143e02d1
Always set checked_monotonic_time when calling CheckMonotonicTime()
2024-10-03 17:11:34 -07:00
Petar Popovic
020fb6889c
Removed unnecessary const-qualifiers in src and test files
2024-10-03 17:39:08 -04:00
Petar Popovic
b8e8dcaa9a
Add void to openbsd function prototypes
2024-10-03 13:55:21 -07:00
Petar Popovic
0e909d2785
Removed redundant condition in src/events/SDL_pen.c
2024-10-03 13:42:18 -07:00
Petar Popovic
3246df8bd3
Remove redundant SDL_Vulkan_GetResultString() declaration
2024-10-03 13:29:53 -07:00
Petar Popovic
f4cea5e019
Removed const qualifiers from SDL_CreateHashTable() parameter types
2024-10-02 16:29:49 -07:00
Petar Popovic
dee62e1b47
Remove trailing comma in enum
2024-09-28 17:47:37 +03:00
Petar Popovic
48c3ee2120
testcolorspace.c: Fix unreachable code warning
2024-09-27 15:22:24 -07:00
Petar Popovic
457d0edeaf
Remove some extra semicolons
2024-09-26 20:01:56 +03:00
Petar Popovic
e5d3a1b6f5
Remove casts from typed pointer to void * for printf %p in test projects
2024-09-24 14:40:32 +03:00
Petar Popovic
004ac40226
Fix warning: no function prototype
2024-09-23 10:03:18 -07:00
Petar Popovic
043c876a15
Move default colorspace aliases into enum
2024-09-23 07:37:02 -07:00
Petar Popovic
4392233007
Removed tabs from headers
2024-09-21 10:39:53 -07:00
Petar Popovic
d03c7cdf17
Removing extra semicolons
2024-09-11 19:45:22 -07:00
Petar Popovic
fd2a266549
Adding void to empty function prototype parenthesis
2024-09-11 19:44:52 -07:00
Petar Popovic
6fca867ffe
Fix testoffscreen.c: bool literal returned from 'main'
2024-09-11 01:49:45 -04:00
Petar Popovic
323b60abf1
SDL_test_harness.c: Fix warning -Wcast-function-type-strict
2024-09-10 18:22:54 -07:00
Petar Popovic
a57f6c4af3
Fix additional calloc-transposed-args warnings
2024-09-08 19:28:11 -07:00
Petar Popovic
d2ef15d8e6
Fix warnings: calloc-transposed-args
2024-09-08 19:28:11 -07:00
Petar Popovic
aa6a0be7a8
Fix warning: redefinition of typedef 'SDLTest_TestSuiteRunner'
2024-09-08 15:36:51 -07:00
Petar Popovic
257385277d
SDL_realloc() with size 0 now always defaults to size 1
2024-09-08 06:39:37 -07:00
Petar Popovic
1751e127c8
Removed trailing commas in enums
2024-09-01 06:23:20 -07:00
Petar Popovic
0f59d2f8c9
SDL_test_memory.h: Added void to function prototype
2024-08-31 20:03:25 -07:00
Petar Popovic
d1739ce3a8
Added headers to some SDL_test_*.h files
2024-08-31 11:56:27 -07:00
Petar Popovic
3f05e9cd58
Added includes to SDL_gpu.h
2024-08-31 09:59:17 -07:00
Petar Popovic
1103294d33
SDL_scancode.h: Updating HID usage tables link
2024-05-14 18:13:21 -07:00
Petar Popovic
3baec8aab4
Renaming SDLK_QUOTEDBL to SDLK_DBLAPOSTROPHE
2024-05-14 08:46:38 -07:00
Petar Popovic
94cbaaabbf
Renaming SDLK_QUOTE and SDLK_BACKQUOTE
...
Renaming SDLK_QUOTE to SDLK_APOSTROPHE.
Renaming SDLK_BACKQUOTE to SDLK_GRAVE.
This makes them similar to their scancode names.
2024-05-13 11:11:11 -07:00
Petar Popovic
9c6aa5066a
PipeWire: removing log message
2024-05-10 13:06:20 -07:00
Petar Popovic
45ac1a09d9
System dependent 64 bit integer suffixes
...
Added macros SDL_SINT64_C() and SDL_UINT64_C().
Integer suffixes of SDL_MAX_SINT64, SDL_MIN_SINT64, SDL_MAX_UINT64
and SDL_MIN_UINT64 are now system dependent.
2024-05-06 09:08:49 -07:00
Petar Popovic
dec872bdd9
Fix SDL_GetDaysInMonth() num days in january
2024-04-30 18:06:41 -07:00
Petar Popovic
7bfecacc02
Removing function macro SDL_TABLESIZE()
2024-04-29 13:52:48 -07:00
Petar Popovic
8d0ad44edd
Adding tag names to enums
...
Adding tag names to following enums:
SDL_JoystickType, SDL_JoystickConnectionState, SDL_TouchDeviceType, SDL_DUMMY_ENUM
2024-04-28 16:09:37 -07:00
Petar Popovic
dffbb574ea
renaming SDL_eventaction tag to SDL_EventAction
2024-04-28 16:09:09 -07:00