From c27e1c6b62f22676d20e996fa4a0c1dfd7d7ec9a Mon Sep 17 00:00:00 2001 From: Reuben Dunnington Date: Mon, 21 Aug 2023 12:03:45 -0700 Subject: [PATCH] don't attempt to draw when the window is minimized --- src/runtime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime.c b/src/runtime.c index f1a97cc..3104420 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -204,7 +204,8 @@ void orca_surface_render_commands(oc_surface surface, if(((char*)primitives > memBase) && ((char*)primitives + primitiveCount * sizeof(oc_primitive) - memBase <= memSize) && ((char*)elements > memBase) - && ((char*)elements + eltCount * sizeof(oc_path_elt) - memBase <= memSize)) + && ((char*)elements + eltCount * sizeof(oc_path_elt) - memBase <= memSize) + && oc_window_is_minimized(app->window) == false) { oc_surface_render_commands(surface, clearColor, -- 2.25.1