diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-19 13:15:08 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-19 13:15:08 +0200 |
commit | 7a0980fd58308f7333254a1276e6dd5072326d98 (patch) | |
tree | 8431dfd498762a90944bb5e595f61ea2af914a81 /src/ui/inputwidget.c | |
parent | 63dc07ddbecfdf0be7c0bd98c53e492628dda98b (diff) |
iOS: Adjusting the UI for a tablet screen
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 2f0fa064..9b36b057 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -121,6 +121,9 @@ void init_InputWidget(iInputWidget *d, size_t maxLen) { | |||
121 | setMaxLen_InputWidget(d, maxLen); | 121 | setMaxLen_InputWidget(d, maxLen); |
122 | /* Caller must arrange the width, but the height is fixed. */ | 122 | /* Caller must arrange the width, but the height is fixed. */ |
123 | w->rect.size.y = lineHeight_Text(default_FontId) + 2 * gap_UI; | 123 | w->rect.size.y = lineHeight_Text(default_FontId) + 2 * gap_UI; |
124 | #if defined (iPlatformAppleMobile) | ||
125 | w->rect.size.y += 2 * gap_UI; | ||
126 | #endif | ||
124 | setFlags_Widget(w, fixedHeight_WidgetFlag, iTrue); | 127 | setFlags_Widget(w, fixedHeight_WidgetFlag, iTrue); |
125 | init_Click(&d->click, d, SDL_BUTTON_LEFT); | 128 | init_Click(&d->click, d, SDL_BUTTON_LEFT); |
126 | d->timer = 0; | 129 | d->timer = 0; |