summaryrefslogtreecommitdiff
path: root/src/gui/list.cpp
diff options
context:
space:
mode:
authorkasull <qsullian@gmail.com>2026-03-11 00:24:47 -0400
committerkasull <qsullian@gmail.com>2026-03-11 00:24:47 -0400
commitae6718ec0fb21077b767e189aca26b0fed488775 (patch)
treea4216103d8a9a77edbc470dc4ab094e77ac30261 /src/gui/list.cpp
parentbc1ea16c5be92e3bc810b0a30e01fbc9a7f191a9 (diff)
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
Diffstat (limited to 'src/gui/list.cpp')
-rw-r--r--src/gui/list.cpp3
1 files changed, 1 insertions, 2 deletions
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;