]> Joshua Wise's Git repositories - netwatch.git/blobdiff - video/text.c
Link text into copy_pixels.
[netwatch.git] / video / text.c
index c9068b9794d5fae973e2b54fec2c402c5d3f3e2e..7197bad4e38fcdaba4ab92eaa398bf672cb972cf 100644 (file)
@@ -20,7 +20,7 @@ void text_init()
        outb(0x3CF, oldread);
 }
 
-void text_render(unsigned char *buf, unsigned int x, unsigned int y, unsigned int w, unsigned int h)
+void text_render(char *buf, int x, int y, int w, int h)
 {
        unsigned char *video = p2v(0xB8000);
        unsigned int textx = x / 9;
@@ -58,6 +58,7 @@ void text_render(unsigned char *buf, unsigned int x, unsigned int y, unsigned in
                                *(buf++) = (at & 0x20) ? 0xFF : 0x00;
                                *(buf++) = (at & 0x40) ? 0xFF : 0x00;
                        }
+                       *(buf++) = 0;
                }
        }
 }
This page took 0.023199 seconds and 4 git commands to generate.