From: Joshua Wise Date: Sun, 14 Dec 2008 05:15:29 +0000 (-0500) Subject: That is almost certainly all the cause of my woe. X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/77671f96efe9904af681de78c96e305e4e0f3abe?hp=2e581707f488e66ecce37a7343c813e071fd6beb That is almost certainly all the cause of my woe. --- diff --git a/video/text.c b/video/text.c index e7b0db3..962af0c 100644 --- a/video/text.c +++ b/video/text.c @@ -39,6 +39,7 @@ void text_render(char *buf, int x, int y, int w, int h) smram_aseg_set_state(SMRAM_ASEG_SMMCODE); for (cy = y; cy < (y + h); cy++) { + cx = x; texty = cy / 14; textx = cx / 9; ch = video[texty * 50 + textx * 2]; @@ -89,6 +90,7 @@ uint32_t text_checksum(int x, int y, int w, int h) for (cy = y; cy < (y + h); cy++) { + cx = x; texty = cy / 14; textx = cx / 9; ch = video[texty * 50 + textx * 2];