From feb5b15e9bf9292e3d4d82ea1e01ab3557fb1240 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 4 Jan 2008 23:42:38 +0000 Subject: All-new greyscale library, replacing the old one. Features: (1) Drawing/updating is faster than the old grayscale lib at full depth. (2) Always 129 shades instead of 2..33 shades. (3) No graininess caused by frequent updates (mpegplayer, doom, ...). (4) Needs less memory than the old grayscale lib at full depth. * The tradeoff is slightly higher CPU load in the ISR (frames are calculated 'live') and an extra function in the core. * Ported all plugins which used the graylib to use the new one. * Some slight optimisations for archos and H1x0 LCD update. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15998 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/zxbox/spmain.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/plugins/zxbox/spmain.c') diff --git a/apps/plugins/zxbox/spmain.c b/apps/plugins/zxbox/spmain.c index ca0fa9b..5134476 100644 --- a/apps/plugins/zxbox/spmain.c +++ b/apps/plugins/zxbox/spmain.c @@ -42,8 +42,8 @@ #include #include #include -#ifdef USE_GRAY -#include "../lib/gray.h" +#ifdef USE_GREY +#include "../lib/grey.h" #endif #include "zxbox_keyb.h" @@ -426,8 +426,8 @@ static bool zxbox_menu(void) else intkeys[i] = (unsigned) settings.keymap[i]; } -#ifdef USE_GRAY - gray_show(true); +#ifdef USE_GREY + grey_show(true); #endif return (exit); } @@ -465,8 +465,8 @@ static void run_singlemode(void) if (zxbox_menu()){ /* Save the user settings if they have changed */ if (rb->memcmp(&settings,&old_settings,sizeof(settings))!=0) { -#ifdef USE_GRAY - gray_show(false); +#ifdef USE_GREY + grey_show(false); #endif rb->splash(0, "Saving settings..."); configfile_save(GLOBALCFG, config,sizeof(config)/sizeof(*config),SETTINGS_VERSION); @@ -531,7 +531,7 @@ static void init_load(void *parameter) check_params (parameter); if(spcf_init_snapshot != NULL) { -#ifndef USE_GRAY +#ifndef USE_GREY rb->splash(HZ, "Loading snapshot '%s'", spcf_init_snapshot); #endif -- cgit v1.1