From 5b0521c9aadee11886e2c92df7d768d5e76063a6 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 7 Jun 2010 03:44:11 +0000 Subject: Changeover to the new skin format. SkinBreakingChange in the wiki has the runown of the changes. Major changes are paramerterised tags now use %tag(param,param), colours are removed from the %V() tag, %Vi gets a required (but can be -) label as its first param). utils/skinupdater/ has a program to update individual skins, and a perl script to update a whole zip. Themesite will be unusable for the time being (you should be able to upload new themes once it updates checkwps though). I obviously havnt tested every updated wps in this change so let me know if one doesnt load git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26641 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/statusbar-skinned.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'apps/gui/statusbar-skinned.c') diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c index a53555a291..fcd4cfbd9e 100644 --- a/apps/gui/statusbar-skinned.c +++ b/apps/gui/statusbar-skinned.c @@ -200,7 +200,7 @@ void sb_create_from_settings(enum screen_type screen) { y = screens[screen].lcdheight - STATUSBAR_HEIGHT; } - len = snprintf(ptr, remaining, "%%V|0|%d|-|%d|0|-|-|\n%%wi\n", + len = snprintf(ptr, remaining, "%%V(0,%d,-,%d,0)\n%%wi\n", y, height); remaining -= len; ptr += len; @@ -215,9 +215,7 @@ void sb_create_from_settings(enum screen_type screen) if (ptr2[0] && ptr2[0] != '-') /* from ui viewport setting */ { - len = snprintf(ptr, remaining, "%%ax%%Vi|%s|\n", ptr2); - while ((ptr2 = strchr(ptr, ','))) - *ptr2 = '|'; + len = snprintf(ptr, remaining, "%%ax%%Vi(-,%s)\n", ptr2); } else { @@ -232,7 +230,7 @@ void sb_create_from_settings(enum screen_type screen) default: height = screens[screen].lcdheight; } - len = snprintf(ptr, remaining, "%%ax%%Vi|0|%d|-|%d|1|-|-|\n", + len = snprintf(ptr, remaining, "%%ax%%Vi(-,0,%d,-,%d,1)\n", y, height); } sb_skin_data_load(screen, buf, false); -- cgit v1.2.3