aboutsummaryrefslogtreecommitdiff
path: root/host/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'host/main.c')
-rw-r--r--host/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/main.c b/host/main.c
index c6086e1..fbe126a 100644
--- a/host/main.c
+++ b/host/main.c
@@ -20,6 +20,7 @@
void free_framebuffer(framebuffer_t *fb){
+ printf("Freeing %lx and %lx\n", fb->data, fb);
free(fb->data);
free(fb);
}
@@ -78,6 +79,7 @@ framebuffer_t *framebuffer_render_text(char *s, glyphtable_t *glyph_table){
if(g->height > gbufheight)
gbufheight = g->height;
+
gbufwidth += g->width;
}
/* For easier rendering on the terminal, round up to multiples of two */
@@ -301,6 +303,7 @@ framebuffer_t *framebuffer_render_text(char *s, glyphtable_t *glyph_table){
fb->w = gbufwidth;
fb->h = gbufheight;
fb->data = gbuf;
+ printf("Returning buffer with w %ld h %ld memory location %lx\n", gbufwidth, gbufheight, gbuf);
return fb;
error:
free(gbuf);
@@ -354,5 +357,6 @@ void console_render_buffer(framebuffer_t *fb){
}
printf("\n");
}
+ printf("\033[0m");
}