Updated TODO

This commit is contained in:
pelya
2014-03-02 21:06:54 +02:00
parent 5ab47cd410
commit b7bea2773d
4 changed files with 11 additions and 4 deletions

View File

@@ -151,7 +151,7 @@ AccessSdCard=
AccessInternet=
# Immersive mode - Android will hide on-screen Home/Back keys. Looks bad if you invoke Android keyboard. (y) / (n)
ImmersiveMode=
ImmersiveMode=y
# Application implements Android-specific routines to put to background, and will not draw anything to screen
# between SDL_ACTIVEEVENT lost / gained notifications - you should check for them

View File

@@ -586,6 +586,13 @@ JAVA_EXPORT_NAME(Settings_nativeSetupScreenKeyboard) ( JNIEnv* env, jobject thi
int nbuttons1row, nbuttons2row;
int _nbuttons = MAX_BUTTONS;
SDL_Rect * r;
// TODO: screenRatio is not used yet
enum { STANDARD_PHONE_SCREEN_HEIGHT = 70 }; // And by "standard phone", I mean my own.
float screenRatio = atoi(getenv("DISPLAY_HEIGHT_MM")) / STANDARD_PHONE_SCREEN_HEIGHT;
if( screenRatio < STANDARD_PHONE_SCREEN_HEIGHT )
screenRatio = STANDARD_PHONE_SCREEN_HEIGHT;
touchscreenKeyboardTheme = theme;
// TODO: works for horizontal screen orientation only!
buttonsize = size;