summaryrefslogtreecommitdiffstats
path: root/apps/plugins/mosaique.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-24 22:33:21 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-24 22:33:21 +0000
commit04daef17a1d180c68888c29d11a1b9087e9ace32 (patch)
treef2d794c196981fc605880e3bbb4447edbaba5f50 /apps/plugins/mosaique.c
parent0e935bdf01aff1e3bc66221c9a0fcc80f935c3d6 (diff)
downloadrockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.tar.gz
rockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.tar.bz2
rockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.zip
First part of graphics api rework. Special functions, parameter handling, pixel functions, lines and filled primitives done for black & white core, main display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6856 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mosaique.c')
-rw-r--r--apps/plugins/mosaique.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/apps/plugins/mosaique.c b/apps/plugins/mosaique.c
index af5f4d1c01..3d0bfb816a 100644
--- a/apps/plugins/mosaique.c
+++ b/apps/plugins/mosaique.c
@@ -63,6 +63,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
#ifdef HAVE_LCD_BITMAP
rb->lcd_clear_display();
+ rb->lcd_set_drawmode(DRMODE_COMPLEMENT);
#else
if (!pgfx_init(rb, 4, 2))
{
@@ -101,10 +102,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
}
#ifdef HAVE_LCD_BITMAP
- rb->lcd_invertrect(LARGE-x, HAUT-y, 2*x+1, 1);
- rb->lcd_invertrect(LARGE-x, HAUT+y, 2*x+1, 1);
- rb->lcd_invertrect(LARGE-x, HAUT-y+1, 1, 2*y-1);
- rb->lcd_invertrect(LARGE+x, HAUT-y+1, 1, 2*y-1);
+ rb->lcd_fillrect(LARGE-x, HAUT-y, 2*x+1, 1);
+ rb->lcd_fillrect(LARGE-x, HAUT+y, 2*x+1, 1);
+ rb->lcd_fillrect(LARGE-x, HAUT-y+1, 1, 2*y-1);
+ rb->lcd_fillrect(LARGE+x, HAUT-y+1, 1, 2*y-1);
rb->lcd_update();
#else
pgfx_invertrect(LARGE-x, HAUT-y, 2*x+1, 1);
@@ -120,7 +121,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
switch (button)
{
case MOSAIQUE_QUIT:
-#ifdef HAVE_LCD_CHARCELLS
+#ifdef HAVE_LCD_BITMAP
+ rb->lcd_set_drawmode(DRMODE_SOLID);
+#else
pgfx_release();
#endif
return PLUGIN_OK;
@@ -148,7 +151,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
default:
if (rb->default_event_handler(button) == SYS_USB_CONNECTED)
{
-#ifdef HAVE_LCD_CHARCELLS
+#ifdef HAVE_LCD_BITMAP
+ rb->lcd_set_drawmode(DRMODE_SOLID);
+#else
pgfx_release();
#endif
return PLUGIN_USB_CONNECTED;