Commit Graph

  • 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
  • 4ccc53edfe Fixed warning C6011: Dereferencing NULL pointer 'display'. Sam Lantinga 2023-12-04 20:35:14 -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
  • 3e54061fa8 Fixed warning C6011: Dereferencing NULL pointer 'SDL_disabled_events[hi]'. Sam Lantinga 2023-12-04 19:45:54 -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
  • 757c984ddb gamecontroller: Backport 3.0 'type:' field to 2.0 Ethan Lee 2023-11-27 17:12:01 -05: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
  • 61cd57d378 cocoa: Resync modifier keypressed on NSEventTypeFlagsChanged event. Ryan C. Gordon 2023-11-29 21:38:41 -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
  • df05d5eff4 Fix scroll wheel handling in testmouse Cameron Cawley 2023-11-28 22:15:18 +00:00
  • 0134672345 cmake: copy sources to binary directory in separate target Anonymous Maarten 2023-11-28 23:03:30 +01:00
  • 63d4bd4e57 SDL_SendKeyboardText: remove workaround from 1e12d7c, fix use of iscntrl Ozkan Sezer 2023-11-29 00:39:24 +03:00
  • fea6e7afb1 cmake: copy sources to binary directory in separate target Anonymous Maarten 2023-11-28 18:49:01 +01:00
  • 9faa7977bd UWP: Add support for supplementary Unicode characters input Dimitriy Ryazantcev 2023-11-27 17:23:17 +02:00
  • 7b628ea4d5 Win32: Simplify Unicode text input code Dimitriy Ryazantcev 2023-11-27 16:15:24 +02:00
  • 8f14dc6998 Corrected comment Sam Lantinga 2023-11-22 10:35:15 -08:00
  • 3381828cc6 Fix 3DS Analog Values (#8581) zoeyjodon 2023-11-22 13:34:01 -05:00
  • 411c70abb1 Fix the target membership of SDL_pen.h (thanks kanjitalk755!) Sam Lantinga 2023-11-28 12:20:43 -08:00
  • be0e303ec8 document the purpose of SDL_SetTextInputRect shenleban tongying 2023-11-28 15:00:04 -05:00
  • 3e6513c773 document the purpose of SDL_SetTextInputRect shenleban tongying 2023-11-28 15:00:04 -05:00
  • 1e12d7cfb6 Make sure we don't pass UTF-8 to SDL_iscntrl() Sam Lantinga 2023-11-28 11:38:35 -08:00
  • 9a206adbee UWP: Use Windows.UI.Core.CoreDispatcher.AcceleratorKeyActivated event for keyboard Dimitriy Ryazantcev 2023-11-28 20:23:57 +02:00
  • 309ea2d5f9 UWP: Simplify Win32 scan code to SDL scan code mapping Dimitriy Ryazantcev 2023-11-27 16:11:20 +02:00
  • acc5bb89f8 [Win32] Better keyboard button mapping to SDL scan codes Dimitriy Ryazantcev 2023-11-21 14:07:18 +02:00
  • 6b28065e9e Reformat Win32 scan code table Dimitriy Ryazantcev 2023-11-27 14:27:51 +02:00
  • 7e86b6aef2 Win32: Fix keymap for keyboard layouts that can print UTF-16 surrogates and ligatures Dimitriy Ryazantcev 2023-11-22 15:44:53 +02:00
  • 546bab0a8c Fixed the GameCube HIDAPI controller mapping Sam Lantinga 2023-11-28 10:07:06 -08:00
  • 08c6ac1b16 test: SDLTest_PrintEvent now reports key event mod state. Ryan C. Gordon 2023-11-28 13:07:56 -05:00
  • 98ee4a5292 Removed HIDAPI controller mappings Sam Lantinga 2023-11-28 09:54:35 -08:00
  • d42fa25a9e test: SDLTest_PrintEvent now reports key event mod state. Ryan C. Gordon 2023-11-28 13:07:56 -05:00
  • 571e9796b9 Fixed the GameCube HIDAPI controller mapping Sam Lantinga 2023-11-28 10:07:06 -08:00
  • dd984dcd9f Removed HIDAPI controller mappings Sam Lantinga 2023-11-28 09:54:35 -08:00
  • 3817f5126e cocoa: Use -[NSApplicationDelegate applicationSupportsSecureRestorableState]. Ryan C. Gordon 2023-11-28 12:24:33 -05:00
  • 7d25a443c4 cocoa: Use -[NSApplicationDelegate applicationSupportsSecureRestorableState]. Ryan C. Gordon 2023-11-28 12:24:33 -05:00
  • 3fbaf737ef test: Removed unnecessary line added by copy/paste error. Ryan C. Gordon 2023-11-28 12:11:13 -05:00
  • c5b0ff77d7 test: testwm2 now displays keyboard mod state. Ryan C. Gordon 2023-11-28 12:05:02 -05:00
  • 258849c9bc test: testwm2 now displays keyboard mod state. Ryan C. Gordon 2023-11-28 12:05:02 -05:00
  • 5772e00c3f cmake: disable oss by default on OpenBSD, not FreeBSD Anonymous Maarten 2023-11-28 16:45:33 +01:00
  • ceac93ade2 Set framebuffer_srgb_capable to the actual value obtained (#8634) Jake S. Del Mastro 2023-11-28 08:48:19 -05:00
  • 594a79c2f9 Set framebuffer_srgb_capable to the actual value obtained (#8634) Jake S. Del Mastro 2023-11-28 08:48:19 -05:00
  • ed3fad1880 cmake: disable oss by default on Linux, NetBSD and FreeBSD Anonymous Maarten 2023-11-27 22:03:56 +01:00
  • 6bb40f1d8d SDL_VideoCapture: allow add/remove device at runtime on linux Sylvain 2023-11-27 19:35:45 +01:00
  • 8d47e3bb82 Added support for the NACON Revolution 5 Pro controller Sam Lantinga 2023-11-27 12:09:31 -08:00
  • f0e47f8ee0 Added support for the NACON Revolution 5 Pro controller Sam Lantinga 2023-11-27 12:09:31 -08:00
  • 2f806c89b5 initial import of hidapi netbsd uhid native backend from mainstream Ozkan Sezer 2023-11-26 08:55:02 +03:00
  • 1b284cd415 X11 pen detection: fix misclassification due to improper init Christoph Reichenbach 2023-11-26 08:47:32 +00:00
  • c4ca64deaf ci: do 'brew update' & don't run dependent checks on installed things Anonymous Maarten 2023-11-26 02:02:10 +01:00
  • d486de6349 cmake: fixed iconv detection test program Ozkan Sezer 2023-11-26 01:55:28 +03:00
  • bbcf40e811 cmake: fixed iconv detection test program Ozkan Sezer 2023-11-26 01:55:24 +03:00
  • 0fb36f29a8 cmake: check if CMP0087 exists before setting it (#8613) CasualPokePlayer 2023-11-25 13:42:55 -08:00
  • 42a8139fd6 render: Clip bresenham lines against a real viewport thing. Ryan C. Gordon 2023-11-25 01:51:35 -05:00
  • 4a40a272bd render: Patched to compile. Ryan C. Gordon 2023-11-24 22:47:44 -05:00
  • 983f178b7d render: Clip lines before Bresenham algorithm generates points. Ryan C. Gordon 2023-11-24 19:31:30 -05:00
  • db7f6425d0 rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. Ryan C. Gordon 2023-11-24 19:29:39 -05:00
  • 4339647d90 render: Clip lines before Bresenham algorithm generates points. Ryan C. Gordon 2023-11-24 19:31:30 -05:00
  • a391dd5fef rect: Avoid numeric overflow on massive lines in SDL_IntersectRectAndLine. Ryan C. Gordon 2023-11-24 19:29:39 -05:00
  • e548044a82 ci: add NetBSD to test matrix Anonymous Maarten 2023-11-11 21:52:07 +01:00
  • dd5b8db3a6 SDL_hidapi requires libusb >= 1.0.16 Anonymous Maarten 2023-11-24 21:31:35 +01:00
  • 657f5f791c autotools: fix actually wrong use of AC_MSG_RESULT Ozkan Sezer 2023-11-24 14:37:40 +03:00
  • 6ba90f7775 render: Batching is always enabled now! Ryan C. Gordon 2023-11-20 20:26:12 -05:00
  • b24d6bd59a opengl: Creating a texture trashes the cached texturing state, fix it. Ryan C. Gordon 2023-11-23 20:00:01 -05:00
  • e9b4869372 opengl: Creating a texture trashes the cached texturing state, fix it. Ryan C. Gordon 2023-11-23 20:00:01 -05:00
  • 0a6b5abf45 render: GL-based renderers should treat adaptive vsync as vsync being enabled. Ryan C. Gordon 2023-11-23 18:22:34 -05:00
  • dcf04559db render: GL-based renderers should treat adaptive vsync as vsync being enabled. Ryan C. Gordon 2023-11-23 18:28:43 -05:00