1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2007-03-16 21:56:08 +00:00
parent 2c643b9f3e
commit 4d6374c923
107 changed files with 529 additions and 553 deletions

View file

@ -54,7 +54,7 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter,
fd = rb->open(filename, O_RDONLY);
if (fd < 0)
{
rb->splash(2*HZ, true, "Can't open %s", filename);
rb->splash(2*HZ, "Can't open %s", filename);
return PLUGIN_ERROR;
}
readsize = rb->read(fd, &header, sizeof(header));
@ -64,17 +64,17 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter,
if (readsize != sizeof(header))
{
rb->splash(2*HZ, true, "Reading %s overlay failed.", name);
rb->splash(2*HZ, "Reading %s overlay failed.", name);
return PLUGIN_ERROR;
}
if (header.magic != PLUGIN_MAGIC || header.target_id != TARGET_ID)
{
rb->splash(2*HZ, true, "%s overlay: Incompatible model.", name);
rb->splash(2*HZ, "%s overlay: Incompatible model.", name);
return PLUGIN_ERROR;
}
if (header.api_version != PLUGIN_API_VERSION)
{
rb->splash(2*HZ, true, "%s overlay: Incompatible version.", name);
rb->splash(2*HZ, "%s overlay: Incompatible version.", name);
return PLUGIN_ERROR;
}
@ -82,14 +82,14 @@ enum plugin_status run_overlay(struct plugin_api* rb, void* parameter,
if (header.load_addr < audiobuf ||
header.end_addr > audiobuf + audiobuf_size)
{
rb->splash(2*HZ, true, "%s overlay doesn't fit into memory.", name);
rb->splash(2*HZ, "%s overlay doesn't fit into memory.", name);
return PLUGIN_ERROR;
}
fd = rb->open(filename, O_RDONLY);
if (fd < 0)
{
rb->splash(2*HZ, true, "Can't open %s", filename);
rb->splash(2*HZ, "Can't open %s", filename);
return PLUGIN_ERROR;
}
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,
if (readsize < 0)
{
rb->splash(2*HZ, true, "Reading %s overlay failed.", name);
rb->splash(2*HZ, "Reading %s overlay failed.", name);
return PLUGIN_ERROR;
}
/* Zero out bss area */