This should fix a DJUI base crash

This commit is contained in:
Agent X 2024-07-16 13:27:41 -04:00
parent 71f1d2f64a
commit fdaf425e84
1 changed files with 1 additions and 0 deletions

View File

@ -283,6 +283,7 @@ static void djui_base_render_border(struct DjuiBase* base) {
//////////// ////////////
bool djui_base_render(struct DjuiBase* base) { bool djui_base_render(struct DjuiBase* base) {
if (base == NULL) { return false; }
if (!base->visible) { return false; } if (!base->visible) { return false; }
if (base->on_render_pre != NULL) { if (base->on_render_pre != NULL) {