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




Rockbox Technical Forums


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

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  [SOLVED] Text gets cut off when changing volume and playing/pausing.
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Text gets cut off when changing volume and playing/pausing.  (Read 2286 times)

Offline hydroxide

  • Member
  • *
  • Posts: 21
[SOLVED] Text gets cut off when changing volume and playing/pausing.
« on: June 22, 2009, 05:51:06 PM »
I've been having a very wierd bug with a wps I made yesterday. My volume icon and "track# of #tracks" begin at the same y coordinate-- occasionally when I change the volume the bottom of the text displaying the track number gets cut off and stays like that until you change the track or leave and reenter the wps screen. similarly the text displaying the artist name sometimes gets cut off at the bottom when playing/pausing. I can only think of this as a viewport problem, but then wouldn't it do this all the time? if you need my code I can post it.
Here's my wps code:

http://www.pastebin.ca/1471988



---------------------------------------
As a side note- i was considering making a completely different wps for when the backlight is off/hold button is on; one that has no dynamic content (ie. track time, progress bar, scrolling items, changing volume icon). ie. all dynamic content would clear/pause once the backlight goes off and come back when it's on-- a ploy to extend battery time. is this possible and would it actually extend the playback time significantly (by significantly i want at least 15+ more minutes of playtime out of it).
« Last Edit: June 24, 2009, 07:01:25 PM by hydroxide »
Logged

Offline Horscht

  • Member
  • *
  • Posts: 26
Re: Text in wps screen gets cut off when changing volume and playing/pausing.
« Reply #1 on: June 22, 2009, 10:49:45 PM »
I am not an expert here, but aren't viewports only redrawn when something changes on one?
I guess your volume-viewport overlaps the tracklist viewport. When you change the volume the volume viewport gets updated "erasing" the lower part of the tracklist viewort. When Changing tracks the tracklist viewport gets updated and you can see the full text again. So to solve your issue would only require you to stop overlapping those viewports.

PS: I could be totaly wrong, too :D
Logged

Offline hydroxide

  • Member
  • *
  • Posts: 21
Re: Text in wps screen gets cut off when changing volume and playing/pausing.
« Reply #2 on: June 23, 2009, 04:19:24 PM »
Well I don't have a viewport for my volume, I just gave the volume image coordinates. And that still doesn't explain why my other text gets cut off. Trust me, none of my viewports or coordinates overlap that's the first thing that I checked.... The volume icon and track numbers are on opposite sides of the screen..
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Text in wps screen gets cut off when changing volume and playing/pausing.
« Reply #3 on: June 23, 2009, 04:22:35 PM »
How about pasting the code of your WPS somewhere for people here to have a look at ?

http://www.pastebin.ca/ for example ?
Logged

Read The Manual Please

Offline hydroxide

  • Member
  • *
  • Posts: 21
Re: Text in wps screen gets cut off when changing volume and playing/pausing.
« Reply #4 on: June 23, 2009, 10:14:51 PM »
http://www.pastebin.ca/1471988
Logged

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: Text in wps screen gets cut off when changing volume and playing/pausing.
« Reply #5 on: June 24, 2009, 05:09:31 AM »
Hi,
if you display an image in a viewport, then the coordinates are relative to the viewport, so if you want the volume images to be shown at 155|20 then you should change line 9 to:
%xl|V|volume.bmp|0|0|10|
Logged

Offline hydroxide

  • Member
  • *
  • Posts: 21
Re: Text in wps screen gets cut off when changing volume and playing/pausing.
« Reply #6 on: June 24, 2009, 01:20:39 PM »
Quote from: PaulJam on June 24, 2009, 05:09:31 AM
Hi,
if you display an image in a viewport, then the coordinates are relative to the viewport, so if you want the volume images to be shown at 155|20 then you should change line 9 to:
%xl|V|volume.bmp|0|0|10|

Oh thanks, actually what happened is that as my wps is currently (on my iPod) the volume icon was not in a viewport, so I thought that that might be the problem. Anyway, I updated it and my problem still isn't resolved.. I would appreciate if someone could test it out on a simulator to see what I mean.
Logged

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: Text in wps screen gets cut off when changing volume and playing/pausing.
« Reply #7 on: June 24, 2009, 02:57:20 PM »
One other thing you could try is to remove line 11 (%V|0|0|-|-|-|000000|-|). This viewport isn't necessary as far as i can see, but it is covering the whole screen, so it overlaps with the other viewports which can lead to unpredictable behavior.

If you want someone to test the WPS, then you have to provide the images along with the .wps file (and also tell the name of the used font).
Logged

Offline hydroxide

  • Member
  • *
  • Posts: 21
Re: Text in wps screen gets cut off when changing volume and playing/pausing.
« Reply #8 on: June 24, 2009, 06:59:17 PM »
Hey, that seems to have worked! I will report back if there are any more problems. Thanks a lot :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  [SOLVED] Text gets cut off when changing volume and playing/pausing.
 

  • SMF 2.0.6 | SMF © 2013, Simple Machines
  • XHTML
  • RSS
  • WAP2

Page created in 0.096 seconds with 53 queries.