fix: remove duplicate GRID_ROWS/GRID_COLS defines and fix carla_host reference

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-03 10:40:57 +00:00
parent ce1c7a249f
commit 8a8d6ca1ac
2 changed files with 1 additions and 3 deletions

2
gui.c
View File

@@ -189,7 +189,7 @@ int gui_main(Engine *engine)
} else if (ch == '\n' || ch == '\r') {
/* Submit plugin URI */
if (plugin_uri_input_len > 0) {
carla_add_plugin(&carla_host, selected_channel, plugin_uri_input, PLUGIN_TYPE_INTERNAL);
carla_add_plugin(&g_engine->carla_host, selected_channel, plugin_uri_input, PLUGIN_TYPE_INTERNAL);
plugin_uri_input_len = 0;
plugin_uri_input[0] = '\0';
}

2
tui.c
View File

@@ -10,8 +10,6 @@
#include <ctype.h>
#include <math.h>
#define GRID_ROWS 8
#define GRID_COLS 8
#define CELL_WIDTH 6
#define CELL_HEIGHT 3