the character in the lower right corner was not displayed
This commit is contained in:
@@ -664,7 +664,7 @@ MtxOrb_string (Driver *drvthis, int x, int y, char *string)
|
|||||||
|
|
||||||
x--; y--; /* Convert 1-based coords to 0-based... */
|
x--; y--; /* Convert 1-based coords to 0-based... */
|
||||||
offset = (y * width) + x;
|
offset = (y * width) + x;
|
||||||
siz = (width * height) - offset - 1;
|
siz = (width * height) - offset;
|
||||||
siz = siz > strlen(string) ? strlen(string) : siz;
|
siz = siz > strlen(string) ? strlen(string) : siz;
|
||||||
|
|
||||||
memcpy(framebuf + offset, string, siz);
|
memcpy(framebuf + offset, string, siz);
|
||||||
|
|||||||
Reference in New Issue
Block a user