diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-27 22:43:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-27 23:15:06 +0300 |
commit | dba24b2e59eb739e73228dbcf707e943905a9e5a (patch) | |
tree | bdbcca13bb984a47fd4f1f41d0429244777e10e9 /src/resources/sdlimagehelper.cpp | |
parent | ef5ba77247a2860a201c4d9177c4f3479d53538a (diff) | |
download | manaverse-dba24b2e59eb739e73228dbcf707e943905a9e5a.tar.gz manaverse-dba24b2e59eb739e73228dbcf707e943905a9e5a.tar.bz2 manaverse-dba24b2e59eb739e73228dbcf707e943905a9e5a.tar.xz manaverse-dba24b2e59eb739e73228dbcf707e943905a9e5a.zip |
Fix text size if it was not power of two.
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r-- | src/resources/sdlimagehelper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index 82e476b8c..abc9ca068 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -129,6 +129,7 @@ Image *SDLImageHelper::load(SDL_Surface *const tmpImage) } Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage, + int width, int height, const float alpha) { if (!tmpImage) |