From d5e1e5698319fbfda77371e96a21a0ea124343b6 Mon Sep 17 00:00:00 2001 From: wanderer06 Date: Wed, 4 Aug 2021 21:49:51 +0100 Subject: [PATCH] Add NULL overload to SDL_SetWindowDisplayMode --- src/SDL2.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index be1f8d2..e81797d 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -1943,6 +1943,14 @@ namespace SDL2 ref SDL_DisplayMode mode ); + /* window refers to an SDL_Window* */ + /* NULL overload - use the window's dimensions and the desktop's format and refresh rate */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern int SDL_SetWindowDisplayMode( + IntPtr window, + IntPtr mode + ); + /* window refers to an SDL_Window* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_SetWindowFullscreen(