@@ -164,15 +164,15 @@ int splash_display(void)
int x = 0, y = 0, ret;
if (!CONFIG_IS_ENABLED(SPLASH_SCREEN))
return -ENOSYS;
+ ret = splash_screen_prepare();
+ if (ret)
+ return ret;
+
s = env_get("splashimage");
if (!s)
return -EINVAL;
addr = hextoul(s, NULL);
- ret = splash_screen_prepare();
- if (ret)
- return ret;
-
splash_get_pos(&x, &y);
if (CONFIG_IS_ENABLED(BMP))
@@ -352,7 +352,7 @@ int stdio_add_devices(void)
}
}
if (IS_ENABLED(CONFIG_SPLASH_SCREEN) &&
- IS_ENABLED(CONFIG_CMD_BMP))
+ IS_ENABLED(CONFIG_BMP))
splash_display();
}