Add NULL overload to SDL_SetWindowDisplayMode

This commit is contained in:
wanderer06 2021-08-04 21:49:51 +01:00 committed by Ethan Lee
parent b2ed029f11
commit d5e1e56983

View file

@ -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(