diff options
| author | 2026-02-07 13:32:37 -0500 | |
|---|---|---|
| committer | 2026-02-07 13:32:37 -0500 | |
| commit | 8349e95e3e0ea4d3081739e2b8bb5787b9e366ba (patch) | |
| tree | 89c058b1454f3c898fb918dc2ce1c7a2fb701e4b /src/osd/modules/render/drawsdl.cpp | |
| parent | dba6d057f1186642e73eb7fa020aabf9647b163f (diff) | |
Initial support for SDL3. [R. Belmont, Vas Crabb]
* SDL3 is the default for macOS targets. Linux/Windows can build with
OSD=sdl3 while we wait for better distro support for SDL3. Both X11 and
Wayland sessions are fully supported on Linux.
* SDL3 -sound=sdl supports both input and output. All other video, sound,
and input functionality should otherwise be the same for now. SDL 3.4+
multiple keyboard/mouse support is planned.
Diffstat (limited to 'src/osd/modules/render/drawsdl.cpp')
| -rw-r--r-- | src/osd/modules/render/drawsdl.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/osd/modules/render/drawsdl.cpp b/src/osd/modules/render/drawsdl.cpp index b1a9e93f42e..77ae714b9b3 100644 --- a/src/osd/modules/render/drawsdl.cpp +++ b/src/osd/modules/render/drawsdl.cpp @@ -14,7 +14,7 @@ #include "modules/osdmodule.h" -#if defined(OSD_SDL) +#if defined(OSD_SDL) && !defined(SDLMAME_SDL3) // from specific OSD implementation #include "sdlopts.h" @@ -274,7 +274,7 @@ int renderer_sdl1::create() m_blittimer = 0; yuv_init(); - osd_printf_verbose("Leave renderer_sdl2::create\n"); + osd_printf_verbose("Leave renderer_sdl1::create\n"); return 0; } @@ -777,12 +777,10 @@ sdl_scale_mode const video_sdl1::s_scale_modes[] = { } // namespace osd - -#else // defined(OSD_SDL) +#else // defined(OSD_SDL) && !defined(SDLMAME_SDL3) namespace osd { namespace { MODULE_NOT_SUPPORTED(video_sdl1, OSD_RENDERER_PROVIDER, "soft") } } -#endif // defined(OSD_SDL) - +#endif // defined(OSD_SDL) && !defined(SDLMAME_SDL3) MODULE_DEFINITION(RENDERER_SDL1, osd::video_sdl1) |
