diff --git a/Samples/basic/demo/src/main.cpp b/Samples/basic/demo/src/main.cpp index 79ccf6ce7..9b747eeb4 100644 --- a/Samples/basic/demo/src/main.cpp +++ b/Samples/basic/demo/src/main.cpp @@ -166,6 +166,8 @@ class DemoWindow : public Rml::EventListener { if (auto el_output = document->GetElementById("form_output")) el_output->SetInnerRML(submit_message); } + + document->GetContext()->RequestNextUpdate(.0); } } @@ -465,9 +467,9 @@ int main(int /*argc*/, char** /*argv*/) bool running = true; while (running) { - running = Backend::ProcessEvents(context, &Shell::ProcessKeyDownShortcuts, true); - demo_window->Update(); + + running = Backend::ProcessEvents(context, &Shell::ProcessKeyDownShortcuts, true); context->Update(); Backend::BeginFrame();