mirror of
https://github.com/love2d/megasource.git
synced 2026-08-20 12:40:06 +02:00
update SDL3 to libsdl-org/SDL@186c6e5
This commit is contained in:
@@ -59,6 +59,10 @@
|
||||
#include <emscripten.h>
|
||||
#endif
|
||||
|
||||
#ifdef SDL_PLATFORM_3DS
|
||||
#include <3ds.h>
|
||||
#endif
|
||||
|
||||
#ifdef SDL_PLATFORM_LINUX
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
@@ -67,6 +71,9 @@
|
||||
|
||||
// Available video drivers
|
||||
static VideoBootStrap *bootstrap[] = {
|
||||
#ifdef SDL_VIDEO_DRIVER_PRIVATE
|
||||
&PRIVATE_bootstrap,
|
||||
#endif
|
||||
#ifdef SDL_VIDEO_DRIVER_COCOA
|
||||
&COCOA_bootstrap,
|
||||
#endif
|
||||
@@ -258,7 +265,7 @@ typedef struct
|
||||
|
||||
static Uint32 SDL_DefaultGraphicsBackends(SDL_VideoDevice *_this)
|
||||
{
|
||||
#if (defined(SDL_VIDEO_OPENGL) && defined(SDL_PLATFORM_MACOS)) || (defined(SDL_PLATFORM_IOS) && !TARGET_OS_MACCATALYST) || defined(SDL_PLATFORM_ANDROID)
|
||||
#if (defined(SDL_VIDEO_OPENGL) && defined(SDL_PLATFORM_MACOS)) || (defined(SDL_PLATFORM_IOS) && !TARGET_OS_MACCATALYST)
|
||||
if (_this->GL_CreateContext) {
|
||||
return SDL_WINDOW_OPENGL;
|
||||
}
|
||||
@@ -5518,6 +5525,23 @@ bool SDL_ShowSimpleMessageBox(SDL_MessageBoxFlags flags, const char *title, cons
|
||||
},
|
||||
title, message);
|
||||
return true;
|
||||
#elif defined(SDL_PLATFORM_3DS)
|
||||
errorConf errCnf;
|
||||
bool hasGpuRight;
|
||||
|
||||
// If the video subsystem has not been initialised, set up graphics temporarily
|
||||
hasGpuRight = gspHasGpuRight();
|
||||
if (!hasGpuRight)
|
||||
gfxInitDefault();
|
||||
|
||||
errorInit(&errCnf, ERROR_TEXT_WORD_WRAP, CFG_LANGUAGE_EN);
|
||||
errorText(&errCnf, message);
|
||||
errorDisp(&errCnf);
|
||||
|
||||
if (!hasGpuRight)
|
||||
gfxExit();
|
||||
|
||||
return true;
|
||||
#else
|
||||
SDL_MessageBoxData data;
|
||||
SDL_MessageBoxButtonData button;
|
||||
|
||||
Reference in New Issue
Block a user