diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-12 13:49:38 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-12 13:49:38 +0300 |
commit | 33620846cca5678fbd662ea1a48fad302727dae7 (patch) | |
tree | 322fb4ab2c1dd7dd3eceee0834f3e90d27838de4 /src/ui/uploadwidget.c | |
parent | 1410bbde7779efe3a20f603523547c8b8f55b6a1 (diff) |
Mobile: Draw optimizations; focus handling
Widgets can now be marked for buffering their contents, which is useful if their contents change seldom but they are drawn often.
For example, the navbar is always visible but doesn't change very often, and during animations menu contents are static but there is a moving animation so everything gets drawn 60 FPS.
Focus handling was also improved so the lookup results can be scrolled while entering text, and one can tap outside an input field to unfocus it.
Diffstat (limited to 'src/ui/uploadwidget.c')
-rw-r--r-- | src/ui/uploadwidget.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/uploadwidget.c b/src/ui/uploadwidget.c index fb8aaf0a..78a1196a 100644 --- a/src/ui/uploadwidget.c +++ b/src/ui/uploadwidget.c | |||
@@ -376,11 +376,11 @@ static iBool processEvent_UploadWidget_(iUploadWidget *d, const SDL_Event *ev) { | |||
376 | return processEvent_Widget(w, ev); | 376 | return processEvent_Widget(w, ev); |
377 | } | 377 | } |
378 | 378 | ||
379 | static void draw_UploadWidget_(const iUploadWidget *d) { | 379 | //static void draw_UploadWidget_(const iUploadWidget *d) { |
380 | draw_Widget(constAs_Widget(d)); | 380 | // draw_Widget(constAs_Widget(d)); |
381 | } | 381 | //} |
382 | 382 | ||
383 | iBeginDefineSubclass(UploadWidget, Widget) | 383 | iBeginDefineSubclass(UploadWidget, Widget) |
384 | .processEvent = (iAny *) processEvent_UploadWidget_, | 384 | .processEvent = (iAny *) processEvent_UploadWidget_, |
385 | .draw = (iAny *) draw_UploadWidget_, | 385 | .draw = draw_Widget, |
386 | iEndDefineSubclass(UploadWidget) | 386 | iEndDefineSubclass(UploadWidget) |