diff options
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 8034d858..ed2ec024 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -421,7 +421,7 @@ void init_Window(iWindow *d, iRect rect) { | |||
421 | d->ignoreClick = iFalse; | 421 | d->ignoreClick = iFalse; |
422 | d->focusGainedAt = 0; | 422 | d->focusGainedAt = 0; |
423 | d->keyboardHeight = 0; | 423 | d->keyboardHeight = 0; |
424 | init_Anim(&d->rootOffset, 0.0f); | 424 | // init_Anim(&d->rootOffset, 0.0f); |
425 | uint32_t flags = 0; | 425 | uint32_t flags = 0; |
426 | #if defined (iPlatformAppleDesktop) | 426 | #if defined (iPlatformAppleDesktop) |
427 | SDL_SetHint(SDL_HINT_RENDER_DRIVER, shouldDefaultToMetalRenderer_MacOS() ? "metal" : "opengl"); | 427 | SDL_SetHint(SDL_HINT_RENDER_DRIVER, shouldDefaultToMetalRenderer_MacOS() ? "metal" : "opengl"); |
@@ -1215,10 +1215,10 @@ iBool isOpenGLRenderer_Window(void) { | |||
1215 | void setKeyboardHeight_Window(iWindow *d, int height) { | 1215 | void setKeyboardHeight_Window(iWindow *d, int height) { |
1216 | if (d->keyboardHeight != height) { | 1216 | if (d->keyboardHeight != height) { |
1217 | d->keyboardHeight = height; | 1217 | d->keyboardHeight = height; |
1218 | if (height == 0) { | 1218 | // if (height == 0) { |
1219 | setFlags_Anim(&d->rootOffset, easeBoth_AnimFlag, iTrue); | 1219 | // setFlags_Anim(&d->rootOffset, easeBoth_AnimFlag, iTrue); |
1220 | setValue_Anim(&d->rootOffset, 0, 250); | 1220 | // setValue_Anim(&d->rootOffset, 0, 250); |
1221 | } | 1221 | // } |
1222 | postCommandf_App("keyboard.changed arg:%d", height); | 1222 | postCommandf_App("keyboard.changed arg:%d", height); |
1223 | postRefresh_App(); | 1223 | postRefresh_App(); |
1224 | } | 1224 | } |