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(