mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 02:16:58 +00:00
V1.20
New feature: - Basic C compiler
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user