Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: crash91 on May 30, 2008, 12:35:01 PM

Title: Album art clipping
Post by: crash91 on May 30, 2008, 12:35:01 PM
I've nearly finished my WPS, but the album art keeps getting clipped, sometimes it is only the hieght of about one line, and at others it is double that.I've even tried removing the repeat/shuffle icons, but that didnt work. Running the sim through terminal produces no errors. ???
Help please!

 Edit: Attached WPS

Code: [Select]
#Backdrop Image
%X|bg.bmp|
#Album art positions and display (80x80)
%Cl|48|14|c80|c80|
#Progressbar Image + display
%P|pb.bmp|
%pb|10|0|176|129|
#Other Images
%xl|a|shuffle.bmp|0|20|
%xl|b|repeat.bmp|146|20|
%xl|c|battery1.bmp|0|210|
%xl|d|battery2.bmp|0|200|
%xl|e|battery3.bmp|0|190|
%xl|f|battery4.bmp|0|180|
%xl|g|battery5.bmp|0|170|
%xl|h|battery6.bmp|0|164|
%xl|i|battery7.bmp|0|155|
%xl|j|volume1.bmp|112|210|
%xl|k|volume2.bmp|112|200|
%xl|l|volume3.bmp|112|190|
%xl|m|volume4.bmp|112|180|
%xl|n|volume5.bmp|112|170|
%xl|o|volume6.bmp|112|163|
%xl|p|volume7.bmp|112|155|
%xl|A|play.bmp|72|175|
%xl|B|pause.bmp|72|175|
%xl|C|rw.bmp|72|175|
%xl|D|ffw.bmp|72|175|
#Disable Statusbar
%wd
%C
#Image Stuff
#Playback status
%?mp<|%xdA|%xdB|%xdD|%xdC>
#Volume/Battery "arcs".
%?bl<|%xdc|%xdc%xdd|%xdc%xdd%xde|%xdc%xdd%xde%xdf|%xdc%xdd%xde%xdf%xdg|%xdc%xdd%xde%xdf%xdg%xdh|%xdc%xdd%xde%xdf%xdg%xdh%xdi>
%?pv<|%xdj|%xdj%xdk|%xdj%xdk%xdl|%xdj%xdk%xdl%xdm|%xdj%xdk%xdl%xdm%xdn|%xdj%xdk%xdl%xdm%xdn%xdo|%xdj%xdk%xdl%xdm%xdn%xdo%xdp>
#Shuffle/Repeat icons
#%?ps<%xda|>
#%?mm<|%xdb|%xdb|%xdb|%xdb>
#All the Text stuff
#Time then date (24h Time and date in the format Tuesday 2008-05-27)
%V|0|0|176|12|1|FFFFFF|000000|
%al %?cf<%cH:%cM:%cS| %cl:%cM:%cS %cP> %?mh<%ar%?cu<Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday> %cb %ce %cY |%ar%?cu<Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday> %cY-%cm-%ce>
#Track info, calling viewports for each line of text.
%V|13|98|163|12|1|FFFFFF|000000|
%s%al%?it<%it|%fn> by %?ia<%ia|%d2>
%V|13|111|163|12|1|FFFFFF|000000|
%s%al%?id<%id|%d1>
#Song position
%V|0|142|176|15|1|FFFFFF|000000|
%al %pc %ar%pr
#Playlist position
%V|61|156|53|12|1|FFFFFF|000000|
%ac%pp/%pe
#Volume/Battery numerical display.
%V|0|205|30|12|1|FFFFFF|000000|
%al %bl %%
%V|146|205|30|12|1|FFFFFF|000000|
%ar%pv dB
#%V|48|14|80|80|1|FFFFFF|000000|

Title: Re: Album art clipping
Post by: wintermute23 on May 30, 2008, 12:46:49 PM
I looks like there's an empty viewport which sits on top of the album art.

Try commenting out all the viewports, and adding them back in one by one, to see if you can identify one of them that's causing the problem...

EDIT: You have a blank line in the last viewport (which sits exactly on top of the album art). Get rid of this viewport, because it's not doing you any good, anyway. Make sure you don't have a trailing blank line, and that might fix it? Worth a try.
Title: Re: Album art clipping
Post by: crash91 on May 30, 2008, 12:48:50 PM
I just saw that, I deleted it but it didnt work. There are no other viewports that cover that area, which is very strange.
Title: Re: Album art clipping
Post by: ZincAlloy on May 30, 2008, 12:52:09 PM
try to make the shuffle and repeat icon viewport larger and place the icons and  album art inside.
Title: Re: Album art clipping
Post by: PaulJam on May 30, 2008, 01:04:32 PM
Hi,

i have seen similar problems while making a WPS. The solution for me was to add a couple of blank lines at the top of the WPS to move those cleared lines down (and outside of the screen).
Title: Re: Album art clipping
Post by: karashata on May 30, 2008, 04:24:14 PM
Another good rule of thumb is to move the cover art display tag below anything else in the same viewport that way it's drawn last, overtop of any lines that might otherwise blank sections of it out.