paint: cleanup
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
|
||||
#include "../global.h"
|
||||
|
||||
typedef struct string_node {
|
||||
struct logic_node *base;
|
||||
char *value;
|
||||
} string_node_t;
|
||||
|
||||
logic_node_value_t *string_node_get(string_node_t *self, i32 from) {
|
||||
if (self->base->inputs->length > 0) {
|
||||
return logic_node_input_get(self->base->inputs->buffer[0]);
|
||||
@@ -20,7 +25,7 @@ void string_node_set(string_node_t *self, void *value) {
|
||||
}
|
||||
}
|
||||
|
||||
string_node_t *string_node_create(ui_node_t *raw, f32_array_t *args) {
|
||||
void *string_node_create(ui_node_t *raw, f32_array_t *args) {
|
||||
string_node_t *n = GC_ALLOC_INIT(string_node_t, {0});
|
||||
n->base = logic_node_create(n);
|
||||
n->base->get = string_node_get;
|
||||
|
||||
Reference in New Issue
Block a user