engine: small refactorings in sdl2 support, enable messagebox and timer in sdl3 backend back

This commit is contained in:
Alibek Omarov
2025-12-16 05:18:24 +05:00
parent 67a121ef8e
commit 30ad3556dd
5 changed files with 24 additions and 20 deletions

View File

@@ -56,7 +56,7 @@ SETUP BACKENDS DEFINITIONS
// select messagebox implementation
//
#ifndef XASH_MESSAGEBOX
#if XASH_SDL == 2 && !XASH_NSWITCH // SDL2 messageboxes are not available on NSW
#if XASH_SDL >= 2 && !XASH_NSWITCH // SDL2 messageboxes are not available on NSW
#define XASH_MESSAGEBOX MSGBOX_SDL
#elif XASH_WIN32
#define XASH_MESSAGEBOX MSGBOX_WIN32
@@ -73,7 +73,7 @@ SETUP BACKENDS DEFINITIONS
// no timer - no xash
//
#ifndef XASH_TIMER
#if XASH_SDL == 2
#if XASH_SDL >= 2
#define XASH_TIMER TIMER_SDL
#elif XASH_WIN32
#define XASH_TIMER TIMER_WIN32