From e63e84a5dfb18e9b7eca8dabcd2d58ceac342529 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 4 Jun 2010 13:22:50 +0000 Subject: Convert some more stuff to mylcd_ and support pgfx as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26543 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/snow.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'apps/plugins/snow.c') diff --git a/apps/plugins/snow.c b/apps/plugins/snow.c index eb8870efde..c3c9b7458a 100644 --- a/apps/plugins/snow.c +++ b/apps/plugins/snow.c @@ -20,6 +20,7 @@ **************************************************************************/ #include "plugin.h" #include "lib/playergfx.h" +#include "lib/mylcd.h" PLUGIN_HEADER @@ -27,12 +28,10 @@ PLUGIN_HEADER #define NUM_PARTICLES (LCD_WIDTH * LCD_HEIGHT / 72) #define SNOW_HEIGHT LCD_HEIGHT #define SNOW_WIDTH LCD_WIDTH -#define MYLCD(fn) rb->lcd_ ## fn #else #define NUM_PARTICLES 10 #define SNOW_HEIGHT 14 #define SNOW_WIDTH 20 -#define MYLCD(fn) pgfx_ ## fn #endif /* variable button definitions */ @@ -136,14 +135,14 @@ static void snow_move(void) for (i=0; ilcd_fillrect(particles[i][0],particles[i][1], FLAKE_WIDTH,FLAKE_WIDTH); #else pgfx_drawpixel(particles[i][0],particles[i][1]); #endif - MYLCD(set_drawmode)(DRMODE_SOLID); + mylcd_set_drawmode(DRMODE_SOLID); #ifdef HAVE_REMOTE_LCD if (particles[i][0] <= LCD_REMOTE_WIDTH && particles[i][1] <= LCD_REMOTE_HEIGHT) { @@ -201,7 +200,7 @@ static void snow_init(void) pgfx_display(4, 0); pgfx_display(8, 0); #endif - MYLCD(clear_display)(); + mylcd_clear_display(); #ifdef HAVE_REMOTE_LCD rb->lcd_remote_clear_display(); #endif @@ -227,7 +226,7 @@ enum plugin_status plugin_start(const void* parameter) snow_init(); while (1) { snow_move(); - MYLCD(update)(); + mylcd_update(); #ifdef HAVE_REMOTE_LCD rb->lcd_remote_update(); #endif -- cgit v1.2.3