diff --git a/examples/Example.h b/examples/Example.h index b1c4bf37..2853e343 100644 --- a/examples/Example.h +++ b/examples/Example.h @@ -145,7 +145,7 @@ struct Window Example* example = nullptr; bool needResize = false; - bool needDraw = true; + bool needDraw = false; bool print = false; Window(tvg::CanvasEngine engine, Example* example, uint32_t width, uint32_t height) @@ -206,6 +206,7 @@ struct Window void show() { SDL_ShowWindow(window); + refresh(); //Mainloop SDL_Event event;