summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/spmain.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-01-04 23:42:38 +0000
committerJens Arnold <amiconn@rockbox.org>2008-01-04 23:42:38 +0000
commitfeb5b15e9bf9292e3d4d82ea1e01ab3557fb1240 (patch)
treed854c9a6fbbb3263537071fb02df349fdfa62361 /apps/plugins/zxbox/spmain.c
parentd3586837fa9221a7ef104550b4c0aadc1a6ea77c (diff)
downloadrockbox-feb5b15e9bf9292e3d4d82ea1e01ab3557fb1240.tar.gz
rockbox-feb5b15e9bf9292e3d4d82ea1e01ab3557fb1240.zip
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
Diffstat (limited to 'apps/plugins/zxbox/spmain.c')
-rw-r--r--apps/plugins/zxbox/spmain.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/zxbox/spmain.c b/apps/plugins/zxbox/spmain.c
index ca0fa9bc71..51344763f9 100644
--- a/apps/plugins/zxbox/spmain.c
+++ b/apps/plugins/zxbox/spmain.c
@@ -42,8 +42,8 @@
42#include <string.h> 42#include <string.h>
43#include <stdlib.h> 43#include <stdlib.h>
44#include <errno.h> 44#include <errno.h>
45#ifdef USE_GRAY 45#ifdef USE_GREY
46#include "../lib/gray.h" 46#include "../lib/grey.h"
47#endif 47#endif
48 48
49#include "zxbox_keyb.h" 49#include "zxbox_keyb.h"
@@ -426,8 +426,8 @@ static bool zxbox_menu(void)
426 else 426 else
427 intkeys[i] = (unsigned) settings.keymap[i]; 427 intkeys[i] = (unsigned) settings.keymap[i];
428 } 428 }
429#ifdef USE_GRAY 429#ifdef USE_GREY
430 gray_show(true); 430 grey_show(true);
431#endif 431#endif
432 return (exit); 432 return (exit);
433} 433}
@@ -465,8 +465,8 @@ static void run_singlemode(void)
465 if (zxbox_menu()){ 465 if (zxbox_menu()){
466 /* Save the user settings if they have changed */ 466 /* Save the user settings if they have changed */
467 if (rb->memcmp(&settings,&old_settings,sizeof(settings))!=0) { 467 if (rb->memcmp(&settings,&old_settings,sizeof(settings))!=0) {
468#ifdef USE_GRAY 468#ifdef USE_GREY
469 gray_show(false); 469 grey_show(false);
470#endif 470#endif
471 rb->splash(0, "Saving settings..."); 471 rb->splash(0, "Saving settings...");
472 configfile_save(GLOBALCFG, config,sizeof(config)/sizeof(*config),SETTINGS_VERSION); 472 configfile_save(GLOBALCFG, config,sizeof(config)/sizeof(*config),SETTINGS_VERSION);
@@ -531,7 +531,7 @@ static void init_load(void *parameter)
531 531
532 check_params (parameter); 532 check_params (parameter);
533 if(spcf_init_snapshot != NULL) { 533 if(spcf_init_snapshot != NULL) {
534#ifndef USE_GRAY 534#ifndef USE_GREY
535 rb->splash(HZ, "Loading snapshot '%s'", spcf_init_snapshot); 535 rb->splash(HZ, "Loading snapshot '%s'", spcf_init_snapshot);
536#endif 536#endif
537 537