From dba24b2e59eb739e73228dbcf707e943905a9e5a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Dec 2012 22:43:59 +0300 Subject: Fix text size if it was not power of two. --- src/resources/openglimagehelper.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/resources/openglimagehelper.h') 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; -- cgit v1.2.3-70-g09d2