diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-02 00:30:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-02 00:30:15 +0300 |
commit | 3f04f19a4e30eadf18e2aa18df01655de58a1ffa (patch) | |
tree | 367852ed3d5600565949a749e8b40e10ca1253c8 /src/utils | |
parent | 2d666d9a3b1bc0aeede357882e054b6afd17a9f1 (diff) | |
download | plus-3f04f19a4e30eadf18e2aa18df01655de58a1ffa.tar.gz plus-3f04f19a4e30eadf18e2aa18df01655de58a1ffa.tar.bz2 plus-3f04f19a4e30eadf18e2aa18df01655de58a1ffa.tar.xz plus-3f04f19a4e30eadf18e2aa18df01655de58a1ffa.zip |
fix images in did you know dialog.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/sdlcheckutils.cpp | 6 | ||||
-rw-r--r-- | src/utils/sdlcheckutils.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/utils/sdlcheckutils.cpp b/src/utils/sdlcheckutils.cpp index 3810672d9..7140e44fe 100644 --- a/src/utils/sdlcheckutils.cpp +++ b/src/utils/sdlcheckutils.cpp @@ -138,6 +138,12 @@ SDL_Surface *FakeIMG_LoadPNG_RW(SDL_RWops *const src, const char *const file, return addSurface("IMG_LoadPNG_RW", IMG_LoadPNG_RW(src), file, line); } +SDL_Surface *FakeIMG_LoadJPG_RW(SDL_RWops *const src, const char *const file, + const unsigned line) +{ + return addSurface("IMG_LoadJPG_RW", IMG_LoadJPG_RW(src), file, line); +} + SDL_Surface *FakeIMG_Load(const char *name, const char *const file, const unsigned line) { diff --git a/src/utils/sdlcheckutils.h b/src/utils/sdlcheckutils.h index b1f1a0821..a2f9bb90a 100644 --- a/src/utils/sdlcheckutils.h +++ b/src/utils/sdlcheckutils.h @@ -35,6 +35,9 @@ struct SDL_Surface; SDL_Surface *FakeIMG_LoadPNG_RW(SDL_RWops *const src, const char *const file, const unsigned line); +SDL_Surface *FakeIMG_LoadJPG_RW(SDL_RWops *const src, const char *const file, + const unsigned line); + void FakeSDL_FreeSurface(SDL_Surface *const surface, const char *const file, const unsigned line); |