debug font: rendering white on black now. Changed font spacing
authorLukas Krickl <lukas@krickl.dev>
Thu, 26 Feb 2026 20:42:29 +0000 (21:42 +0100)
committerLukas Krickl <lukas@krickl.dev>
Thu, 26 Feb 2026 20:42:29 +0000 (21:42 +0100)
src/r_render.c
src/u_debug.c

index 88626196b4994463769969985c83f5b4761e40ed..b1542863d37607506d73dfa0051adeb8f41c99ee 100644 (file)
@@ -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();
        }
index bd4eda84b424e76c21e21ec8916a8887df6c9168..a60a2289efc180f10e515e637a65ce141377bf5f 100644 (file)
@@ -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);
        }