separate command handling

This commit is contained in:
Luka Jankovic 2025-07-26 00:57:29 +02:00
parent 90db87bec9
commit 0be3768867
11 changed files with 143 additions and 52 deletions

View file

@ -18,9 +18,8 @@
#include "kubo_command_bar.h"
void kubo_command_bar_render(struct kubo_context *context, int x, int y,
int font_size) {
char *cmd = kubo_char_arr_build_str(&context->command);
void kubo_command_bar_render(int x, int y, int font_size) {
char *cmd = kubo_command_get_str();
DrawText(cmd, x, y, font_size, WHITE);
x += MeasureText(cmd, font_size);