summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2006-06-19 01:57:44 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2006-06-19 01:57:44 +0000
commitb0ca08b33c0229f0a9ac5c79861c5566701d0b63 (patch)
treee8510a916a76dd9deb329ce4b3608bb70a88b1a1 /apps
parent6952f03a7dfef2424164762ecd98fb128b7e44eb (diff)
Fix errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10138 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/rockboy/rockboy.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c
index 05f1e4a852..ccc05cef06 100644
--- a/apps/plugins/rockboy/rockboy.c
+++ b/apps/plugins/rockboy/rockboy.c
@@ -174,11 +174,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb->lcd_setfont(0);
+#if defined(HAVE_LCD_COLOR)
rb->lcd_set_foreground(LCD_WHITE);
rb->lcd_set_background(LCD_BLACK);
+#endif
+
rb->lcd_clear_display();
- if (!parameter) {
+ if (!parameter)
+ {
rb->splash(HZ*3, true, "Play gameboy ROM file! (.gb/.gbc)");
return PLUGIN_OK;
}
@@ -204,14 +208,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
/* rb->lcd_clear_display(); */
gnuboy_main(parameter);
- if(shut&&!cleanshut) {
+ if(shut&&!cleanshut)
+ {
rb->splash(HZ/2, true, errormsg);
return PLUGIN_ERROR;
}
pcm_close();
rb->splash(HZ/2, true, "Shutting down");
- savesettings();
+ savesettings();
cleanup();