From 23688dfb78602d05e33727182a279d8226b51184 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 27 Jun 2024 12:15:21 +0900 Subject: [PATCH] example: do not redraw for the static content --- examples/Example.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/Example.h b/examples/Example.h index 5a4ebfc2..3dab3785 100644 --- a/examples/Example.h +++ b/examples/Example.h @@ -144,7 +144,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) @@ -204,6 +204,7 @@ struct Window void show() { SDL_ShowWindow(window); + refresh(); //Mainloop SDL_Event event;