From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14
---
source/src/video/SDL_sysvideo.h | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/source/src/video/SDL_sysvideo.h b/source/src/video/SDL_sysvideo.h
index 38ed971..c8c425b 100644
--- a/source/src/video/SDL_sysvideo.h
+++ b/source/src/video/SDL_sysvideo.h
@@ -281,6 +281,8 @@
*/
SDL_MetalView (*Metal_CreateView) (_THIS, SDL_Window * window);
void (*Metal_DestroyView) (_THIS, SDL_MetalView view);
+ void *(*Metal_GetLayer) (_THIS, SDL_MetalView view);
+ void (*Metal_GetDrawableSize) (_THIS, SDL_Window * window, int *w, int *h);
/* * * */
/*
@@ -373,6 +375,11 @@
SDL_TLSID current_glwin_tls;
SDL_TLSID current_glctx_tls;
+ /* Flag that stores whether it's allowed to call SDL_GL_MakeCurrent()
+ * with a NULL window, but a non-NULL context. (Not allowed in most cases,
+ * except on EGL under some circumstances.) */
+ SDL_bool gl_allow_no_surface;
+
/* * * */
/* Data used by the Vulkan drivers */
struct
@@ -406,7 +413,6 @@
{
const char *name;
const char *desc;
- int (*available) (void);
SDL_VideoDevice *(*create) (int devindex);
} VideoBootStrap;
@@ -423,6 +429,7 @@
extern VideoBootStrap PSP_bootstrap;
extern VideoBootStrap RPI_bootstrap;
extern VideoBootStrap KMSDRM_bootstrap;
+extern VideoBootStrap KMSDRM_LEGACY_bootstrap;
extern VideoBootStrap DUMMY_bootstrap;
extern VideoBootStrap Wayland_bootstrap;
extern VideoBootStrap NACL_bootstrap;
@@ -430,10 +437,13 @@
extern VideoBootStrap Emscripten_bootstrap;
extern VideoBootStrap QNX_bootstrap;
extern VideoBootStrap OFFSCREEN_bootstrap;
+extern VideoBootStrap OS2DIVE_bootstrap;
+extern VideoBootStrap OS2VMAN_bootstrap;
extern SDL_VideoDevice *SDL_GetVideoDevice(void);
extern int SDL_AddBasicVideoDisplay(const SDL_DisplayMode * desktop_mode);
-extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display);
+extern int SDL_AddVideoDisplay(const SDL_VideoDisplay * display, SDL_bool send_event);
+extern void SDL_DelVideoDisplay(int index);
extern SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode * mode);
extern int SDL_GetIndexOfDisplay(SDL_VideoDisplay *display);
extern SDL_VideoDisplay *SDL_GetDisplay(int displayIndex);
--
Gitblit v1.9.3