From: Lukas Krickl Date: Thu, 26 Feb 2026 20:42:29 +0000 (+0100) Subject: debug font: rendering white on black now. Changed font spacing X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=74bacafa2686352468e7f93c0fc8753b79f6a934;p=lrts%2F.git debug font: rendering white on black now. Changed font spacing --- diff --git a/src/r_render.c b/src/r_render.c index 8862619..b154286 100644 --- a/src/r_render.c +++ b/src/r_render.c @@ -38,7 +38,7 @@ void r_render_frame(void) { u_timer_start(&u_fps_timer); p_draw_begin(); - /* t_map_draw(&t_map); */ + t_map_draw(&t_map); if (state->debug) { r_render_debug(); } diff --git a/src/u_debug.c b/src/u_debug.c index bd4eda8..a60a228 100644 --- a/src/u_debug.c +++ b/src/u_debug.c @@ -8,7 +8,7 @@ #define U_DEBUG_FIRST_PRINT_CHAR 0x20 -r_color u_debug_colors[2] = {0x00000000, 0xFFFFFFFF}; +r_color u_debug_colors[2] = {0x000000FF, 0xFFFFFFFF}; #define u_debug_draw_pixel(x, y, i, c, bit) r_draw_pixel(&r_framebuffer, (x)+7-bit, (y) + i, u_debug_colors[c[i] >> bit & 0x01]); @@ -47,7 +47,7 @@ void u_debug_draw_text(u32 x, u32 y, const char *fmt, ...) { continue; } font_offset = (u32)(c - U_DEBUG_FIRST_PRINT_CHAR) * U_DEBUG_FONT_H; - u_debug_draw_char(x+U_DEBUG_FONT_W*i+U_DEBUG_FONT_W / 2 * i, y, + u_debug_draw_char(x+U_DEBUG_FONT_W*i, y, u_debug_font + font_offset); }