From 7e85064ac77ea43e84d88eb910b0adb6f07d5d12 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Tue, 21 May 2024 10:23:25 -0600 Subject: remove some ui pointer chasing There only exists a single Ui so there is no need to force a pointer redirection for accessing it. The Ui member was moved down in vis-core.h to punt around an issue with the way lua checks for existing objects. It may show up again as I flatten more structs. --- vis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 032b00b..eb8ec92 100644 --- a/vis.h +++ b/vis.h @@ -90,8 +90,8 @@ typedef struct { * @defgroup vis_lifecycle * @{ */ -/** Create a new editor instance using the given user interface. */ -Vis *vis_new(Ui*); +/** Create a new editor instance. */ +Vis *vis_new(void); /** Free all resources associated with this editor instance, terminates UI. */ void vis_free(Vis*); /** -- cgit v1.2.3