SDL/test
Sam Lantinga cd6b68a9fb Define the behavior of a negative width or height passed to SDL_RenderFillRect()
The software renderer now matches the 3D renderer behavior by rendering a reversed rectangle (extending width or height in the opposite direction) when width or height is negative. It also now renders no rectangle if the width and height are 0.

Fixes https://github.com/libsdl-org/SDL/issues/13400
2025-09-07 12:28:37 -07:00
..
android Fixed bug #13794: prevent to use the onBackPressed callback API that is enabled on API36 2025-08-27 11:39:00 +02:00
emscripten emscripten: pass --no-sandbox to the chrome web driver 2025-01-22 02:48:32 +01:00
n3ds
testgpu GPU: Remove D3D11 shaders from testgpu_spinning_cube 2024-11-12 17:32:25 -08:00
win32 sdlprocdump: fix minidump filename 2024-08-30 14:18:03 +02:00
audiofile.bmp
build-shaders.sh Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
checkkeys.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
childprocess.c [Process API] Quoting enhancements (#12946) 2025-05-12 09:17:21 -07:00
CMakeLists.txt Added testsoftwaretransparent to the CMake build system 2025-09-04 09:25:05 -07:00
COPYING
gamepad_axis.bmp
gamepad_axis.h
gamepad_axis_arrow.bmp
gamepad_axis_arrow.h
gamepad_back.bmp
gamepad_back.h
gamepad_battery.bmp
gamepad_battery.h
gamepad_battery_unknown.bmp
gamepad_battery_unknown.h
gamepad_battery_wired.bmp
gamepad_battery_wired.h
gamepad_button.bmp
gamepad_button.h
gamepad_button_background.bmp
gamepad_button_background.h
gamepad_button_small.bmp
gamepad_button_small.h
gamepad_face_abxy.bmp
gamepad_face_abxy.h
gamepad_face_axby.bmp tests: c90 fixes (#endif comments) for consistency after commit 9e37839 2025-08-01 06:28:02 +03:00
gamepad_face_axby.h Added SDL_GAMEPAD_TYPE_GAMECUBE 2025-04-27 11:01:50 -07:00
gamepad_face_bayx.bmp
gamepad_face_bayx.h
gamepad_face_sony.bmp
gamepad_face_sony.h
gamepad_front.bmp
gamepad_front.h
gamepad_touchpad.bmp
gamepad_touchpad.h
gamepad_wired.bmp testcontroller: show gamepad connection state 2024-12-27 13:58:49 -08:00
gamepad_wired.h testcontroller: show gamepad connection state 2024-12-27 13:58:49 -08:00
gamepad_wireless.bmp testcontroller: show gamepad connection state 2024-12-27 13:58:49 -08:00
gamepad_wireless.h testcontroller: show gamepad connection state 2024-12-27 13:58:49 -08:00
gamepadutils.c Fixed the perspective matrix calculation (thanks @KonkolyTamas!) 2025-09-04 06:04:01 -07:00
gamepadutils.h Add a few include guards to private headers 2025-08-01 02:00:08 +02:00
glass.bmp
glass.h
icon.bmp
icon.h
icon2x.bmp Added support for high-DPI cursors and icons 2024-08-01 13:48:28 -07:00
LICENSE.txt Updated copyright for 2025 2025-01-01 07:45:52 -08:00
logaudiodev.bmp
loopwave.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
main.cpp
moose.dat
msdf_font.bmp test/msdf_font.bmp: mark as non-executable. 2025-04-26 02:39:20 +03:00
msdf_font.csv windows: Fix stale zoom/iconic state in WM_WINDOWPOSCHANGED handler 2025-04-25 16:21:44 -07:00
physaudiodev.bmp
picture.xbm
pretest.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
relative_mode.markdown Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
sample.bmp
sample.wav
sdl-test_round.bmp Add system tray support (#10873) 2024-12-24 10:36:39 -08:00
soundboard.bmp
soundboard_levels.bmp
speaker.bmp
sword.wav examples/audio/04-multiple-streams: Remove drag-and-drop support. 2024-12-10 23:10:43 -05:00
template.test.in build: Fix testprocess invocation during "as-installed" tests 2024-09-25 14:48:26 -07:00
testasyncio.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testatomic.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testaudio.c testaudio: Use SDL_SetAppMetadata at startup. 2025-04-25 13:03:09 -04:00
testaudiohotplug.c Remove redundant casts 2025-02-21 10:09:10 -08:00
testaudioinfo.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testaudiorecording.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testaudiostreamdynamicresample.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testautomation.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testautomation_audio.c test/testautomation_audio.c: Free variables before returning 2025-02-16 16:57:56 -08:00
testautomation_blit.c Adding void to empty function prototype parenthesis 2024-09-11 19:44:52 -07:00
testautomation_clipboard.c clipboard: Ensure SDL_ClearClipboardData clears data even when no data has been set 2025-01-02 07:23:27 -08:00
testautomation_events.c testautomation_events: initialize variable to prevent undefined read 2025-09-03 10:15:01 +02:00
testautomation_guid.c SDL_test: use SDLCALL calling convention 2024-09-06 14:19:05 +02:00
testautomation_hints.c tests: port failing SDL_Hint tests from pysdl2 to testautomation 2025-04-01 21:31:10 +02:00
testautomation_images.c Added test and test image for clamped texture address mode to render testautomation 2025-07-21 10:21:31 -07:00
testautomation_images.h tests: c90 fixes (#endif comments) for consistency after commit 9e37839 2025-08-01 06:28:02 +03:00
testautomation_intrinsics.c test/testautomation_intrinsics.c: Free variables before returning 2025-02-16 07:50:07 -08:00
testautomation_iostream.c Add POINTER suffix to SDL_PROP_IOSTREAM_MEMORY_FREE_FUNC 2025-07-21 10:15:46 -07:00
testautomation_joystick.c Added the gamepad hint SDL_GAMECONTROLLER_USE_GAMECUBE_LABELS 2025-05-01 10:54:16 -07:00
testautomation_keyboard.c testautomation keyboard: use space instead of a 2024-11-08 07:01:50 -08:00
testautomation_log.c Added SDL_LogTrace() 2024-09-17 02:04:54 -07:00
testautomation_main.c tests: include SDL_build_config.h when HAVE_BUILD_CONFIG is defined 2024-12-29 20:08:06 +01:00
testautomation_math.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_mouse.c test: Fix mouse focus test on X11 2024-10-10 11:37:45 -04:00
testautomation_pixels.c Fix testautomation pixels_saveLoadBMP big endian issue 2024-12-22 12:08:54 -08:00
testautomation_platform.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_properties.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_rect.c emscripten tests: fix warning: uninitialized variable 2025-08-13 17:00:45 -07:00
testautomation_render.c Define the behavior of a negative width or height passed to SDL_RenderFillRect() 2025-09-07 12:28:37 -07:00
testautomation_sdltest.c fix integer overflow ub in testautomation_sdltest 2025-01-06 13:18:03 -05:00
testautomation_stdlib.c Fixed sscanf("026", "%1x%1x%1x", &r, &g, &b) 2025-03-10 14:45:08 -07:00
testautomation_subsystems.c Verify that the subsystems were successfully initialized 2024-09-15 12:04:10 -07:00
testautomation_suites.h pen: Rework public API. 2024-08-09 22:09:23 -04:00
testautomation_surface.c Fix SDL_BlitSurfaceScaled crash 2025-08-01 09:22:20 -07:00
testautomation_time.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_timer.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_video.c tests: port failing window test from pysdl2 to testautomation 2025-04-01 21:31:10 +02:00
testbounds.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testcamera.c testcamera: SDL_AppQuit destroys state and SDL 2025-02-21 23:04:13 -08:00
testclipboard.c tests: Add showing/setting the primary selection text to testclipboard 2025-02-27 12:35:37 -05:00
testcolorspace.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testcontroller.c Fixed a few "-Wstrict-prototypes" warnings 2025-07-26 11:12:40 -07:00
testcustomcursor.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testdialog.c dialog: Fix save file chooser with xdg portal 2025-08-25 11:35:47 -07:00
testdisplayinfo.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testdraw.c Remove redundant casts 2025-02-21 10:09:10 -08:00
testdrawchessboard.c Remove redundant casts 2025-02-21 10:09:10 -08:00
testdropfile.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testerror.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testevdev.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testffmpeg.c tests: c90 fixes (#endif comments) for consistency after commit 9e37839 2025-08-01 06:28:02 +03:00
testffmpeg_vulkan.c testffmpeg: avutil queue family version check 2025-08-25 11:10:15 -07:00
testffmpeg_vulkan.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testfile.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testfilesystem.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testgeometry.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testgl.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testgles.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testgles2.c Fixed the perspective matrix calculation (thanks @KonkolyTamas!) 2025-09-04 06:04:01 -07:00
testgpu_simple_clear.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testgpu_spinning_cube.c Fixed the perspective matrix calculation (thanks @KonkolyTamas!) 2025-09-04 06:04:01 -07:00
testgpurender_effects.c Renamed SDL_GPURenderStateDesc to SDL_GPURenderStateCreateInfo for consistency with GPU API conventions 2025-08-27 09:14:19 -07:00
testgpurender_effects_CRT.frag.dxil.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_CRT.frag.hlsl Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_CRT.frag.msl.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_CRT.frag.spv.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_grayscale.frag.dxil.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_grayscale.frag.hlsl Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_grayscale.frag.msl.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_grayscale.frag.spv.h Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_msdf.c Renamed SDL_GPURenderStateDesc to SDL_GPURenderStateCreateInfo for consistency with GPU API conventions 2025-08-27 09:14:19 -07:00
testgpurender_msdf.frag.dxil.h Added support for custom shaders with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_msdf.frag.hlsl Added support for custom shaders with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_msdf.frag.msl.h Added support for custom shaders with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_msdf.frag.spv.h Added support for custom shaders with the GPU renderer 2025-03-14 09:26:30 -07:00
testhaptic.c Add and use SDL_HapticEffectID typedef 2025-04-24 08:51:55 -07:00
testhittesting.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testhotplug.c testhotplug+testmouse: exit when pressing ESC key 2025-07-03 02:21:51 +02:00
testiconv.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testime.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testintersections.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testkeys.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testloadso.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testlocale.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testlock.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testmanymouse.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testmessage.c Restyle message boxes and add icon support to them on X11. (#13267) 2025-07-28 09:23:38 -07:00
testmodal.c test: Fix a window parenting bug in testmodal 2025-06-18 09:26:09 -04:00
testmouse.c testhotplug+testmouse: exit when pressing ESC key 2025-07-03 02:21:51 +02:00
testmultiaudio.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testnative.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testnative.h Fix testnative C90 compatibility 2025-08-01 02:27:54 +02:00
testnativecocoa.m
testnativew32.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testnativewayland.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testnativex11.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testoffscreen.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testoverlay.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testpen.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testplatform.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testpopup.c Add support for non-constrained and non-grabbing popups 2025-04-29 12:02:14 -04:00
testpower.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testprocess.c [Process API] Quoting enhancements (#12946) 2025-05-12 09:17:21 -07:00
testqsort.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testrelative.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testrendercopyex.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testrendertarget.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testresample.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testrumble.c Remove even more newlines from log messages 2025-01-23 09:32:50 -08:00
testrwlock.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testscale.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testsem.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testsensor.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testshader.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testshape.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testsoftwaretransparent.c Simplified the transparent software renderer test 2025-09-04 10:31:22 -07:00
testsprite.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testspriteminimal.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testspritesurface.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
teststreaming.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testsurround.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testthread.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testtime.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testtimer.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testtray.c test: Fix resource paths in testtray 2025-06-22 21:03:37 -07:00
testurl.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testutils.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testutils.h Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testver.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testviewport.c Removed width/height parameters from LoadTexture() 2025-03-14 11:38:13 -07:00
testvulkan.c Remove even more newlines from log messages 2025-01-23 09:32:50 -08:00
testwaylandcustom.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testwm.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
testyuv.bmp
testyuv.c testyuv: enable testing planar YUV texture update functions 2025-09-07 10:19:00 -07:00
testyuv_cvt.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
testyuv_cvt.h Add a few include guards to private headers 2025-08-01 02:00:08 +02:00
torturethread.c Remove newlines from log messages 2025-01-22 20:25:04 -08:00
trashcan.bmp
unifont-15.1.05-license.txt Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
unifont-15.1.05.hex Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
utf8.txt