diff --git a/Saphir/Cmd.HC b/Saphir/Cmd.HC index 06df431..bb47ba3 100644 --- a/Saphir/Cmd.HC +++ b/Saphir/Cmd.HC @@ -1,3 +1,5 @@ +extern I64 Saphir(Bool enable = TRUE); + U0 saphir_debug_info(SaphirRect* rect) { DCFill; @@ -167,6 +169,10 @@ Bool saphir_reflow(SaphirNode* node = NULL) U0 saphir_reflow_task_end() { + if (saphir.current_node == saphir.root_node && saphir.current_node->count == 1) { + Saphir(0); + return; + } while (!saphir_reflow) ; } @@ -351,4 +357,4 @@ U0 saphir_enable() saphir.current_node->index = 0; while (!saphir_reflow) ; -} \ No newline at end of file +}