From 5966578e82557ded39a16a64ee6b0c94ac32089f Mon Sep 17 00:00:00 2001 From: Jeremy Sayers Date: Wed, 28 Oct 2020 22:37:00 -0400 Subject: [PATCH] Added IMG_GetError and IMG_SetError wrapping calls to SDL_GetError and SDL_SetError to keep SDL2_image.cs consistent with SDL2_image.h --- src/SDL2_image.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/SDL2_image.cs b/src/SDL2_image.cs index a7052a4..9fa193b 100644 --- a/src/SDL2_image.cs +++ b/src/SDL2_image.cs @@ -254,6 +254,16 @@ namespace SDL2 int quality ); + public static string IMG_GetError() + { + return SDL.SDL_GetError(); + } + + public static void IMG_SetError(string fmtAndArglist) + { + SDL.SDL_SetError(fmtAndArglist); + } + #region Animated Image Support /* This region is only available in 2.0.6 or higher. */