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/openglimagehelper.h | |
parent | ef5ba77247a2860a201c4d9177c4f3479d53538a (diff) | |
download | manaplus-dba24b2e59eb739e73228dbcf707e943905a9e5a.tar.gz manaplus-dba24b2e59eb739e73228dbcf707e943905a9e5a.tar.bz2 manaplus-dba24b2e59eb739e73228dbcf707e943905a9e5a.tar.xz manaplus-dba24b2e59eb739e73228dbcf707e943905a9e5a.zip |
Fix text size if it was not power of two.
Diffstat (limited to 'src/resources/openglimagehelper.h')
-rw-r--r-- | src/resources/openglimagehelper.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h index 0036bf007..30737dc36 100644 --- a/src/resources/openglimagehelper.h +++ b/src/resources/openglimagehelper.h @@ -86,6 +86,7 @@ class OpenGLImageHelper final : public ImageHelper Image *load(SDL_Surface *const tmpImage) A_WARN_UNUSED; Image *createTextSurface(SDL_Surface *const tmpImage, + int width, int height, const float alpha) A_WARN_UNUSED; // OpenGL only public functions @@ -134,7 +135,8 @@ class OpenGLImageHelper final : public ImageHelper */ int powerOfTwo(int input) const A_WARN_UNUSED; - Image *glLoad(SDL_Surface *tmpImage) A_WARN_UNUSED; + Image *glLoad(SDL_Surface *tmpImage, + int width = 0, int height = 0) A_WARN_UNUSED; static int mUseOpenGL; static int mTextureSize; |