From 1efc47ee26298c7fc8b66bcdefab889e8c680495 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Wed, 30 Dec 2015 19:16:29 -0500 Subject: [PATCH] SDL_FillRect overload --- src/SDL2.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index e3ad3da..9f050a7 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -3063,6 +3063,16 @@ namespace SDL2 uint color ); + /* dst refers to an SDL_Surface*. + * This overload allows passing NULL to rect. + */ + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern int SDL_FillRect( + IntPtr dst, + IntPtr rect, + uint color + ); + /* dst refers to an SDL_Surface* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_FillRects(