From ae6718ec0fb21077b767e189aca26b0fed488775 Mon Sep 17 00:00:00 2001 From: kasull Date: Wed, 11 Mar 2026 00:24:47 -0400 Subject: editor object placement and context menus replace the editor menubar dropdown flow with a reusable context menu component merge sprite/entity placement into a single object tool persist entities, and add undo support for created sprites and entities --- src/gui/list.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/list.cpp b/src/gui/list.cpp index 2feff47..0a2a3d3 100644 --- a/src/gui/list.cpp +++ b/src/gui/list.cpp @@ -66,10 +66,9 @@ void gui_list_input_fn( void* ptr ) { if( m1 ) { if( !list->held ) { GUI_LIST_ENTRY* e = &list->plist->data[idx]; - I32 prevval = *list->pval; *list->pval = e->val; - if( list->cb && prevval != *list->pval ) + if( list->cb ) list->cb( list ); } list->held = 1; -- cgit v1.2.3