Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Conflict between %Vf tag and %s tag?
« previous next »
  • Print
Pages: [1]

Author Topic: Conflict between %Vf tag and %s tag?  (Read 2560 times)

Offline Bice

  • Member
  • *
  • Posts: 5
Conflict between %Vf tag and %s tag?
« on: December 27, 2010, 02:21:05 AM »
I've been working on converting some WPS files I created a few months ago for my iPod Video to the new 3.7 syntax.  Using the old syntax where you could set a foreground and background color for a viewport, I made the currently playing song title one color, and the album/artist line a different color.  I had both lines set to scroll if necessary.

After convering them to the new syntax, the lines would display for a second, flicker and then disappear.  Through trial and error I discovered that if I removed the %Vf tag (setting foreground color) the problem went away but the text defaulted to white (which is no good because my background image for the WPS is mostly white).  If I kept the color and removed the scrolling it displayed correctly, but the artist / album title line was usually cut off.

Is this a bug in the new syntax?  Is there any way to both set the color and have the line scroll correctly?

Here's the code that's causing me trouble:

#song title
%V(64,2,222,15,1)
%Vf(ff3333)
%s%ac%?it<%it|%fn>

#album info
%V(56,18,230,15,1)
%Vf(AF7817)
%s%ac%?ia<%ia|%?d(2)<%d(2)|[Unknown Artist]>> - %?id<%id|%?d(1)<%d(1)|[Unknown Album]>>

Any help with this would be appreciated.

  -- Bob
Logged

Offline spike66

  • Member
  • *
  • Posts: 59
Re: Conflict between %Vf tag and %s tag?
« Reply #1 on: December 27, 2010, 06:39:17 AM »
Try leaving %V and %V(f) in the same line, like

#song title
%V(64,2,222,15,1)%Vf(ff3333)
%s%ac%?it<%it|%fn>
Logged

Offline Bice

  • Member
  • *
  • Posts: 5
Re: Conflict between %Vf tag and %s tag?
« Reply #2 on: December 27, 2010, 10:06:25 AM »
Quote from: spike66 on December 27, 2010, 06:39:17 AM
Try leaving %V and %V(f) in the same line, like

#song title
%V(64,2,222,15,1)%Vf(ff3333)
%s%ac%?it<%it|%fn>


That did the trick.   Thanks very much.

  -- Bob
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Conflict between %Vf tag and %s tag?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.08 seconds with 22 queries.