1
0
Fork 0
forked from len0rd/rockbox

Clip bottom & right when positioning the gfx display.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5926 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-02-12 01:32:05 +00:00
parent 661b981387
commit aa6ec9530e

View file

@ -76,9 +76,11 @@ void pgfx_release(void)
void pgfx_display(int cx, int cy)
{
int i, j;
int width = MIN(char_width, 11 - cx);
int height = MIN(char_height, 2 - cy);
for (i = 0; i < char_width; i++)
for (j = 0; j < char_height; j++)
for (i = 0; i < width; i++)
for (j = 0; j < height; j++)
pgfx_rb->lcd_putc(cx + i, cy + j, gfx_chars[char_height * i + j]);
}