From b0bae5d24e3d92fbcf5b8aa6cb8506b936168da4 Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Mon, 8 Jun 2015 22:20:56 +0300 Subject: [PATCH] Screen keys will not be shifted by system bar over the top of the screen --- project/jni/sdl-1.2/src/video/android/SDL_touchscreenkeyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/jni/sdl-1.2/src/video/android/SDL_touchscreenkeyboard.c b/project/jni/sdl-1.2/src/video/android/SDL_touchscreenkeyboard.c index c3d7d72b0..e1c4335a2 100644 --- a/project/jni/sdl-1.2/src/video/android/SDL_touchscreenkeyboard.c +++ b/project/jni/sdl-1.2/src/video/android/SDL_touchscreenkeyboard.c @@ -268,7 +268,7 @@ static inline void drawCharTexFlip(GLTexture_t * tex, SDL_Rect * src, SDL_Rect * cropRect[3] = -cropRect[3]; } glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect); - glDrawTexiOES(dest->x, SDL_ANDROID_sRealWindowHeight - dest->y - dest->h, 0, dest->w, dest->h); + glDrawTexiOES(dest->x + SDL_ANDROID_ScreenVisibleRect.x, SDL_ANDROID_sRealWindowHeight - dest->y - dest->h - SDL_ANDROID_ScreenVisibleRect.y, 0, dest->w, dest->h); } static inline void drawCharTex(GLTexture_t * tex, SDL_Rect * src, SDL_Rect * dest, float r, float g, float b, float a)