Commit Graph

12307 Commits (c838ccf0e3a330ebbcf433698b8f5370c6fa80d6)

Author SHA1 Message Date
Sam Lantinga 08d5c1386e Fixed always on top windows on Windows
Also cleaned up some SetWindowPos() calls and made it explicit when we change the topmost flag
2023-03-17 10:37:21 -07:00
Anonymous Maarten 4a6528e3f0 testprograms: parse arguments using SDLTest_CommonState 2023-03-17 17:54:16 +01:00
Anonymous Maarten 8bea41f737 testthread: parse arguments using SDLTest_CommonState + add arguments 2023-03-17 17:54:16 +01:00
Anonymous Maarten 64b739bc1e testlock: parse arguments using SDLTest_CommonState + extra arguments 2023-03-17 17:54:16 +01:00
Anonymous Maarten 4d86a83fa9 testver: don't allow any arguments 2023-03-17 17:54:16 +01:00
Anonymous Maarten 0268881e30 testspriteminimal: don't allow any arguments 2023-03-17 17:54:16 +01:00
Anonymous Maarten 08d5235da0 testintersections: check integer argument + no global done + get final tick before SDL shutdown 2023-03-17 17:54:16 +01:00
Anonymous Maarten 6e2851878f testhittesting: use SDLTest_Common for creating window(s) and renderer(s) 2023-03-17 17:54:16 +01:00
Anonymous Maarten 75da730a88 testfile: fix reference values 2023-03-17 17:54:16 +01:00
Anonymous Maarten ee13b74d59 testyuv: fix buffer overflow write 2023-03-17 17:54:16 +01:00
Anonymous Maarten 774e51627e SDL_test: fix infinite loop when passing invalid argument 2023-03-17 17:54:16 +01:00
Anonymous Maarten c52ad54b05 SDL_test: don't parse audio/video arguments when its subsystem is not enabled 2023-03-17 17:54:16 +01:00
Anonymous Maarten c8d4ca35ad SDL_test: always print common log usage, even without audio/video backend 2023-03-17 17:54:16 +01:00
Anonymous Maarten 08c85ebae0 SDL_test: introduce SDLTest_CommonDestroyState to only destroy SDLTest_CommonState 2023-03-17 17:54:16 +01:00
Anonymous Maarten 5109e19935 SDL_test: remove unused BuildCommonUsageString 2023-03-17 17:54:16 +01:00
Anonymous Maarten 9451d3079d dynapi: SDL_DYNAPI_entry must be in version script
For SDL dynapi to work, the SDL_DYNAPI_entry symbol must be externally visible.
Adding __attribute__((visibility(default))) would not work
since version scripts override these.
2023-03-17 08:53:14 -07:00
Sylvain 4286f463a8 testautomation_pixels: calling SDL_DestroyPixelFormat or SDL_DestroyPalette with NULL parameter doesn't generate an error 2023-03-17 10:28:54 +01:00
Sam Lantinga e4be1247d0 Added a hint to retain window content during state changes
In my testing window content is always retained, but this makes our intent explicit.
2023-03-16 20:43:07 -07:00
Sam Lantinga ed0937598e Added gamepad mapping for Flydigi Vader 2 with the latest firmware (6.0.4.9) 2023-03-16 20:01:45 -07:00
Sam Lantinga a776188d77 Don't change the Z order when moving or resizing windows 2023-03-16 17:19:38 -07:00
Sam Lantinga 9ee71f0ddf Added --skip-taskbar and --always-on-top command line options 2023-03-16 16:58:01 -07:00
Sam Lantinga 3f67f02d0e Fixed SDL_WINDOW_SKIP_TASKBAR on Windows
The WS_EX_APPWINDOW forces a window onto the taskbar, which is not what we want. Set the style to 0 to use the default behavior.
2023-03-16 16:56:46 -07:00
Sam Lantinga c7ab378c61 We don't need to track whether we were hidden by parent focus change 2023-03-16 14:11:41 -07:00
Sam Lantinga 76176c9845 Conversely, we shouldn't automatically show children when we get focus 2023-03-16 14:09:46 -07:00
Sam Lantinga 0cb7c4ba58 Don't hide popups when losing focus
This isn't the behavior on Windows, and this should probably be an application defined behavior.

If we decide we want this globally, it should probably be implemented at a higher level in SDL_OnWindowFocusLost(), and properly handle the transition of focus to a child window.
2023-03-16 14:04:12 -07:00
Sylvain 5da9e99da0 Fixed bug #7462 - 8888 as default GL backbuffer red/green/blue/alpha bit sizes 2023-03-16 13:54:11 -07:00
Sylvain f9ac7b4044 Fixed bug #7467 - testautomation_audio currently fails because of invalid src/dst rate 2023-03-16 20:49:22 +01:00
Sylvain 899ee8f75a Change SDL_BLENDMODE_MUL for gl renderers
Add FIXME for PSP
2023-03-16 20:25:59 +01:00
Sylvain b95b203116 Refresh generation of SDL_blit_auto.c after simplifying sdlgenblit.pl 2023-03-16 20:25:59 +01:00
Sylvain 41b8fee833 Simplify SDL_BLENDMODE_MUL in sdlgenblit.pl 2023-03-16 20:25:59 +01:00
Sylvain 99668c286b Simplify SDL_BLENDMODE_MUL 2023-03-16 20:25:59 +01:00
Sylvain ad1a216d65 Refresh generation of SDL_blit_auto.c 2023-03-16 20:25:59 +01:00
Sam Lantinga 66eff69d2b Don't update hidden child windows, their relative position doesn't change
This improves performance when moving a top level window that has many hidden child windows
2023-03-16 11:24:21 -07:00
Sam Lantinga e6fe7273a5 Toggle menu visibility with the space bar 2023-03-16 11:24:21 -07:00
Frank Praznik a8ea8db6d7 wayland: Update the popup window geometry on configure events 2023-03-16 14:01:42 -04:00
Frank Praznik be70d9a9c7 wayland: Clarify the popup position restriction purpose
Child popups don't necessarily need to be within, but must intersect or be partially adjacent to the parent, per the xdg-positioner spec.
2023-03-16 14:01:42 -04:00
Frank Praznik c270d151b0 wayland: Handle cases where the compositor does not scale the monitor viewport in its compositing space
The xdg-output spec was updated to clarify its usage rules, and what was previously thought to be a bug is actually valid behavior. Gnome, when not using 'scale-monitor-framebuffer', does not scale the viewport of the display in the global compositor space, and thus the physical and logical sizes of the display will match. This value still needs to be divided by the integer scale value to get the logical output dimensions in screen units though.
2023-03-16 14:01:42 -04:00
Sam Lantinga 5dd317b869 Fixed position when setting WM hints on X11 popup windows 2023-03-15 20:23:03 -07:00
Sam Lantinga 422517c036 Allow passing 0 to SDL_SetWindowMinimumSize() and SDL_SetWindowMaximumSize() to indicate no limit 2023-03-15 16:13:56 -07:00
Sam Lantinga d95b04feaf Fixed display ID check in video_setWindowCenteredOnDisplay 2023-03-15 16:12:54 -07:00
Sylvain 4312abab69 testprogram: add option to use SDL_BLENDMODE_MUL 2023-03-15 22:00:13 +01:00
Sam Lantinga b07a049923 Fixed window positioning in testpopup 2023-03-15 10:35:26 -07:00
Sam Lantinga e794057d9f Move the popup windows to follow the mouse 2023-03-15 10:19:55 -07:00
Anonymous Maarten 7ea6ef4076 ci: add workflow for building SDL on ppc64le 2023-03-15 14:54:20 +01:00
Anonymous Maarten e77132b8aa ci: only store cache vita reqs when restore-cache didn't find anything 2023-03-15 14:54:20 +01:00
Anonymous Maarten 65178df717 ci: test ARM neon and simd on ci using vita toolchain 2023-03-15 14:54:20 +01:00
Anonymous Maarten d27db3defa cmake+video: always use altivec.h header for detection + introduce SDL_ENABLE_ALTIVEC 2023-03-15 14:54:20 +01:00
Anonymous Maarten 684709a5b6 cmake: fix building testautomation without X11 support 2023-03-15 14:54:20 +01:00
Anonymous Maarten 9cb5f0bfc6 video: fix ARM neon and simd 2023-03-15 14:54:20 +01:00
Anonymous Maarten 64e242fd77 cmake: Add test resources to list of files to clean 2023-03-15 14:54:20 +01:00