Compare commits

..

No commits in common. "dacc3be97067fb04c70f9bd4e08ed03163f67e12" and "c397bcd17dfd0064ec7cc0ecdf501249d25bd1a2" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@
#define NODE_HEIGHT 20 #define NODE_HEIGHT 20
#define IO_NODE_FILL_COLOUR ((colour_t){.abgr = 0xff2c84b7}) #define IO_NODE_FILL_COLOUR ((colour_t){.abgr = 0xff2c84b7})
#define IO_NODE_BORDER_COLOUR ((colour_t){.abgr = 0xff315c89}) #define IO_NODE_BORDER_COLOUR ((colour_t){.abgr = 0xff122d5e})
#define OP_NODE_FILL_COLOUR ((colour_t){.abgr = 0xffad6c3a}) #define OP_NODE_FILL_COLOUR ((colour_t){.abgr = 0xffad6c3a})
#define OP_NODE_BORDER_COLOUR ((colour_t){.abgr = 0xff8e4a33}) #define OP_NODE_BORDER_COLOUR ((colour_t){.abgr = 0xff592516})
typedef struct node node_t; typedef struct node node_t;

View File

@ -81,7 +81,7 @@ i32 run_main_loop(void) {
} else { } else {
comp.node_hovered = -1; comp.node_hovered = -1;
for (u64 i = comp.count - 1; i >= 0; --i) { for (u64 i = 0; i < comp.count; ++i) {
node_t *node = &(comp.nodes[i]); node_t *node = &(comp.nodes[i]);
if (aabb(node, comp.mouse_x, comp.mouse_y)) { if (aabb(node, comp.mouse_x, comp.mouse_y)) {