System/Core/Compositor: Hold F12 to display debug info

This commit is contained in:
Alec Murphy 2025-04-10 10:08:38 -04:00
parent 3e85af48d6
commit 86190d4576

View file

@ -1055,8 +1055,8 @@ U0 @compositor_task()
// Debug stuff
I64 debug_row;
if (1 == 2) {
debug_row = 2;
if (KeyDown(SC_F12)) {
debug_row = 32;
total_mem = sys_code_bp->alloced_u8s;
if (sys_data_bp) {
@ -1100,6 +1100,8 @@ U0 @compositor_task()
" title : %s", Compositor.active_win->title);
ConsolePrint2D(Compositor.ctx, 08 * 03, 16 * debug_row++, , ,
" flags : %016b", Compositor.active_win->flags);
ConsolePrint2D(Compositor.ctx, 08 * 03, 16 * debug_row++, , ,
" opacity : %d", Compositor.active_win->opacity);
}
}
@ -1137,4 +1139,4 @@ Compositor.Task = &@compositor_task;
Compositor.UnregisterForGlobalInputEvents = &@compositor_unregister_global_input_event_listener;
Compositor.SetWallpaper = &@compositor_set_wallpaper_send_msg;
"compositor ";
"compositor ";