summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-02-12 01:32:05 +0000
committerJens Arnold <amiconn@rockbox.org>2005-02-12 01:32:05 +0000
commitaa6ec9530ea877a1fc6081788eafa69b91a6ee16 (patch)
tree6bae694564b25f946f2abf0fb264d330cddf1a9d /apps/plugins/lib
parent661b981387afa79af1cbf03309d1a40a7bd48ded (diff)
downloadrockbox-aa6ec9530ea877a1fc6081788eafa69b91a6ee16.tar.gz
rockbox-aa6ec9530ea877a1fc6081788eafa69b91a6ee16.zip
Clip bottom & right when positioning the gfx display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5926 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/playergfx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/lib/playergfx.c b/apps/plugins/lib/playergfx.c
index 5175061642..d227d608a7 100644
--- a/apps/plugins/lib/playergfx.c
+++ b/apps/plugins/lib/playergfx.c
@@ -76,9 +76,11 @@ void pgfx_release(void)
76void pgfx_display(int cx, int cy) 76void pgfx_display(int cx, int cy)
77{ 77{
78 int i, j; 78 int i, j;
79 int width = MIN(char_width, 11 - cx);
80 int height = MIN(char_height, 2 - cy);
79 81
80 for (i = 0; i < char_width; i++) 82 for (i = 0; i < width; i++)
81 for (j = 0; j < char_height; j++) 83 for (j = 0; j < height; j++)
82 pgfx_rb->lcd_putc(cx + i, cy + j, gfx_chars[char_height * i + j]); 84 pgfx_rb->lcd_putc(cx + i, cy + j, gfx_chars[char_height * i + j]);
83} 85}
84 86