Skip to content

main.cpp: Queue an extra render event at startup

For whatever reason, the first call to SDL_RenderPresent() does not actually present anything. Render twice initially as a workaround.

The logic to render extra times (for every frame!) doesn't work initially if animations are enabled and the keyboard is not initially shown; the keyboard perpetually says it is in a slide animation so extra renders are not queued. This logic doesn't seem to be needed beyond the initial frame, and it's much simpler just to queue one extra render event initially.

Signed-off-by: Jonathon Hall jonathon.hall@puri.sm

Merge request reports