Fixed bug in on-screen keyboard layout

This commit is contained in:
pelya
2010-12-20 14:23:42 +00:00
parent e83d174cdc
commit d86319f50d

View File

@@ -722,7 +722,7 @@ JAVA_EXPORT_NAME(Settings_nativeSetupScreenKeyboard) ( JNIEnv* env, jobject thi
// Custom button ordering
int iii = ii + i*2;
if( ii == 2 )
iii = 5 + i;
iii = 4 + i;
buttons[iii].x = SDL_ANDROID_sWindowWidth - SDL_ANDROID_sWindowWidth / 12 - (SDL_ANDROID_sWindowWidth * ii / 6);
buttons[iii].y = SDL_ANDROID_sWindowHeight - SDL_ANDROID_sWindowHeight / 8 - (SDL_ANDROID_sWindowHeight * i / 4);
buttons[iii].w = SDL_ANDROID_sWindowWidth / (size + 2) / 3;