mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
example: do not redraw for the static content
This commit is contained in:
parent
f80814847d
commit
23688dfb78
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,7 @@ struct Window
|
||||||
Example* example = nullptr;
|
Example* example = nullptr;
|
||||||
|
|
||||||
bool needResize = false;
|
bool needResize = false;
|
||||||
bool needDraw = true;
|
bool needDraw = false;
|
||||||
bool print = false;
|
bool print = false;
|
||||||
|
|
||||||
Window(tvg::CanvasEngine engine, Example* example, uint32_t width, uint32_t height)
|
Window(tvg::CanvasEngine engine, Example* example, uint32_t width, uint32_t height)
|
||||||
|
@ -204,6 +204,7 @@ struct Window
|
||||||
void show()
|
void show()
|
||||||
{
|
{
|
||||||
SDL_ShowWindow(window);
|
SDL_ShowWindow(window);
|
||||||
|
refresh();
|
||||||
|
|
||||||
//Mainloop
|
//Mainloop
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
|
Loading…
Add table
Reference in a new issue