the character in the lower right corner was not displayed

This commit is contained in:
reenoo
2002-02-23 19:36:24 +00:00
parent 505bc086ee
commit 4c2e597342
+1 -1
View File
@@ -664,7 +664,7 @@ MtxOrb_string (Driver *drvthis, int x, int y, char *string)
x--; y--; /* Convert 1-based coords to 0-based... */
offset = (y * width) + x;
siz = (width * height) - offset - 1;
siz = (width * height) - offset;
siz = siz > strlen(string) ? strlen(string) : siz;
memcpy(framebuf + offset, string, siz);