summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-16 21:56:08 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-16 21:56:08 +0000
commit4d6374c9236b93e0bd457f99944164fc493d1120 (patch)
treeff9630fcef66e63c61cc0a74e97f21220e668f75 /apps/plugins/lib
parent2c643b9f3e22ee07f7949a5471f726758dc40841 (diff)
downloadrockbox-4d6374c9236b93e0bd457f99944164fc493d1120.tar.gz
rockbox-4d6374c9236b93e0bd457f99944164fc493d1120.zip
Get rid of the 'center' parameter for splashes. There were only 2 of almost 500 splashes which were not centered.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/overlay.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/lib/overlay.c b/apps/plugins/lib/overlay.c
index 91f08e23f0..edae36671f 100644
--- a/apps/plugins/lib/overlay.c
+++ b/apps/plugins/lib/overlay.c
@@ -54,7 +54,7 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter,
54 fd = rb->open(filename, O_RDONLY); 54 fd = rb->open(filename, O_RDONLY);
55 if (fd < 0) 55 if (fd < 0)
56 { 56 {
57 rb->splash(2*HZ, true, "Can't open %s", filename); 57 rb->splash(2*HZ, "Can't open %s", filename);
58 return PLUGIN_ERROR; 58 return PLUGIN_ERROR;
59 } 59 }
60 readsize = rb->read(fd, &header, sizeof(header)); 60 readsize = rb->read(fd, &header, sizeof(header));
@@ -64,17 +64,17 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter,
64 64
65 if (readsize != sizeof(header)) 65 if (readsize != sizeof(header))
66 { 66 {
67 rb->splash(2*HZ, true, "Reading %s overlay failed.", name); 67 rb->splash(2*HZ, "Reading %s overlay failed.", name);
68 return PLUGIN_ERROR; 68 return PLUGIN_ERROR;
69 } 69 }
70 if (header.magic != PLUGIN_MAGIC || header.target_id != TARGET_ID) 70 if (header.magic != PLUGIN_MAGIC || header.target_id != TARGET_ID)
71 { 71 {
72 rb->splash(2*HZ, true, "%s overlay: Incompatible model.", name); 72 rb->splash(2*HZ, "%s overlay: Incompatible model.", name);
73 return PLUGIN_ERROR; 73 return PLUGIN_ERROR;
74 } 74 }
75 if (header.api_version != PLUGIN_API_VERSION) 75 if (header.api_version != PLUGIN_API_VERSION)
76 { 76 {
77 rb->splash(2*HZ, true, "%s overlay: Incompatible version.", name); 77 rb->splash(2*HZ, "%s overlay: Incompatible version.", name);
78 return PLUGIN_ERROR; 78 return PLUGIN_ERROR;
79 } 79 }
80 80
@@ -82,14 +82,14 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter,
82 if (header.load_addr < audiobuf || 82 if (header.load_addr < audiobuf ||
83 header.end_addr > audiobuf + audiobuf_size) 83 header.end_addr > audiobuf + audiobuf_size)
84 { 84 {
85 rb->splash(2*HZ, true, "%s overlay doesn't fit into memory.", name); 85 rb->splash(2*HZ, "%s overlay doesn't fit into memory.", name);
86 return PLUGIN_ERROR; 86 return PLUGIN_ERROR;
87 } 87 }
88 88
89 fd = rb->open(filename, O_RDONLY); 89 fd = rb->open(filename, O_RDONLY);
90 if (fd < 0) 90 if (fd < 0)
91 { 91 {
92 rb->splash(2*HZ, true, "Can't open %s", filename); 92 rb->splash(2*HZ, "Can't open %s", filename);
93 return PLUGIN_ERROR; 93 return PLUGIN_ERROR;
94 } 94 }
95 readsize = rb->read(fd, header.load_addr, header.end_addr - header.load_addr); 95 readsize = rb->read(fd, header.load_addr, header.end_addr - header.load_addr);
@@ -97,7 +97,7 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter,
97 97
98 if (readsize < 0) 98 if (readsize < 0)
99 { 99 {
100 rb->splash(2*HZ, true, "Reading %s overlay failed.", name); 100 rb->splash(2*HZ, "Reading %s overlay failed.", name);
101 return PLUGIN_ERROR; 101 return PLUGIN_ERROR;
102 } 102 }
103 /* Zero out bss area */ 103 /* Zero out bss area */