summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/wps_debug.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-05-05 13:48:50 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-05-05 13:48:50 +0000
commitefd1f4e49facbcdcbb11dbf6a8ead3843df586d3 (patch)
tree1247db65aa3b5eb15814b01d3becd8dbe98d2eb0 /apps/gui/skin_engine/wps_debug.c
parent268f7c42f0d7128a4c88cb1c9b64b663dd266bf6 (diff)
downloadrockbox-efd1f4e49facbcdcbb11dbf6a8ead3843df586d3.tar.gz
rockbox-efd1f4e49facbcdcbb11dbf6a8ead3843df586d3.zip
Make it possible to move the UI viewport using conditional viewports.
%Vi|<label>|<Usual %Vi params>| <- specify the possible viewports to use %VI<label> <- make the UI viewport use the %Vi definition with the <label> label. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25826 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/wps_debug.c')
-rw-r--r--apps/gui/skin_engine/wps_debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/wps_debug.c b/apps/gui/skin_engine/wps_debug.c
index 26554b1db6..4186e306e3 100644
--- a/apps/gui/skin_engine/wps_debug.c
+++ b/apps/gui/skin_engine/wps_debug.c
@@ -490,7 +490,9 @@ static char *get_token_desc(struct wps_token *token, char *buf,
break;
#endif
case WPS_VIEWPORT_ENABLE:
- snprintf(buf, bufsize, "enable VP: %c",
+ case WPS_TOKEN_UIVIEWPORT_ENABLE:
+ snprintf(buf, bufsize, "enable %sVP: %c",
+ token->type == WPS_TOKEN_UIVIEWPORT_ENABLE ? "UI " : "",
(char)token->value.i);
break;
case WPS_TOKEN_BUTTON_VOLUME: