From d8f7e65c53b9636a3716a6813102c8405e575617 Mon Sep 17 00:00:00 2001 From: Leonard Ritter Date: Thu, 25 Sep 2014 22:26:33 +0200 Subject: [PATCH] small fix to stages --- oui.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/oui.h b/oui.h index ba8b823..c111b68 100644 --- a/oui.h +++ b/oui.h @@ -815,7 +815,6 @@ typedef enum UIstate { typedef enum UIstage { UI_STAGE_DECLARE = 0, - UI_STAGE_DRAW, UI_STAGE_PROCESS, } UIstage; @@ -1618,7 +1617,7 @@ void uiLayout() { uiUpdateHotItem(); } - ui_context->stage = UI_STAGE_DRAW; + ui_context->stage = UI_STAGE_PROCESS; } UIrect uiGetRect(int item) { @@ -1740,8 +1739,7 @@ int uiGetClicks() { void uiProcess(int timestamp) { assert(ui_context); - assert(ui_context->stage == UI_STAGE_DRAW); // must run uiClear(), uiLayout() first - ui_context->stage = UI_STAGE_PROCESS; + assert(ui_context->stage == UI_STAGE_PROCESS); // must run uiClear(), uiLayout() first if (!ui_context->count) { uiClearInputEvents();