diff options
Diffstat (limited to 'apps/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/playergfx.c | 6 | ||||
| -rw-r--r-- | apps/plugins/lib/playergfx.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/lib/playergfx.c b/apps/plugins/lib/playergfx.c index b6e7ccf..1df7a3b 100644 --- a/apps/plugins/lib/playergfx.c +++ b/apps/plugins/lib/playergfx.c @@ -85,6 +85,12 @@ void pgfx_display(int cx, int cy) pgfx_rb->lcd_putc(cx + i, cy + j, gfx_chars[char_height * i + j]); } +void pgfx_display_block(int cx, int cy, int x, int y) +{ + pgfx_rb->lcd_putc(cx, cy, gfx_chars[char_height * x + y]); +} + + /*** Update functions ***/ void pgfx_update(void) diff --git a/apps/plugins/lib/playergfx.h b/apps/plugins/lib/playergfx.h index 198d98e..5f49831 100644 --- a/apps/plugins/lib/playergfx.h +++ b/apps/plugins/lib/playergfx.h @@ -29,6 +29,7 @@ bool pgfx_init(struct plugin_api* newrb, int cwidth, int cheight); void pgfx_release(void); void pgfx_display(int cx, int cy); +void pgfx_display_block(int cx, int cy, int x, int y); void pgfx_update(void); void pgfx_set_drawmode(int mode); |