New feature:
- Basic C compiler
This commit is contained in:
Chris
2026-02-06 01:42:27 +01:00
parent 3ba7d2da48
commit afc85e8964
20 changed files with 1519 additions and 12 deletions

View File

@@ -19,6 +19,9 @@ static int mx = 400, my = 300; // Mouse Pos
static int prev_mx = 400, prev_my = 300; // Previous mouse position
static bool start_menu_open = false;
// Hook definition
void (*wm_custom_paint_hook)(void) = NULL;
// Dragging State
static bool is_dragging = false;
static Window *drag_window = NULL;
@@ -330,6 +333,11 @@ void wm_paint(void) {
draw_string(8, menu_y + 195, "Restart", COLOR_BLACK);
}
// Custom Overlay (VM Graphics)
if (wm_custom_paint_hook) {
wm_custom_paint_hook();
}
// 7. Mouse cursor (draw last so it's on top)
draw_cursor(mx, my);
last_cursor_x = mx;