Skip to content

Commit

Permalink
Added IMG_GetError and IMG_SetError wrapping calls to SDL_GetError an…
Browse files Browse the repository at this point in the history
…d SDL_SetError to keep SDL2_image.cs consistent with SDL2_image.h
  • Loading branch information
JeremySayers authored and flibitijibibo committed Oct 29, 2020
1 parent e95ef4e commit 5966578
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/SDL2_image.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@ public static extern int IMG_SaveJPG_RW(
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. */
Expand Down

0 comments on commit 5966578

Please sign in to comment.