From 754d9195f781b7f58970eed650107af01e631b88 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 17 Apr 2007 06:37:22 +0000 Subject: explicitly set *loaded_ok = false; when given "" for a filename. remove icon_init from the startup sequence, its not dependant on filetypes_init anymore,settings_apply calls the icons_init (causes the bmp's to only be read once on boot instead of twice) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13191 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/icon.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'apps/gui/icon.c') diff --git a/apps/gui/icon.c b/apps/gui/icon.c index 8957a5a282..1368c6808e 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -196,11 +196,6 @@ static void load_icons(const char* filename, enum Iconset iconset, struct bitmap *bmp = NULL; int bmpformat = (FORMAT_NATIVE|FORMAT_DITHER); - if (!(*filename)) - { - return; - } - switch (iconset) { case Iconset_Mainscreen: @@ -230,7 +225,7 @@ static void load_icons(const char* filename, enum Iconset iconset, } *loaded_ok = false; - if (!allow_disable || *filename != '-') + if (!allow_disable || (filename[0] && filename[0] != '-')) { char path[MAX_PATH]; -- cgit v1.2.3