skins2 error: Bitmap too large !

About usage, announcement and development of skins for VLC
cellplex
Blank Cone
Blank Cone
Posts: 19
Joined: 23 Sep 2005 23:20

skins2 error: Bitmap too large !

Postby cellplex » 27 Sep 2006 05:31

Hi, I've made a simple skin - using the example VLC OSX skin by Bigben as a guide. Everything seems to work function wise, however I get this error every few seconds in the messages window :-

skins2 error: Bitmap too large !


Here is my theme.xml

<!DOCTYPE Theme PUBLIC "-//VideoLAN//DTD VLC Skins V2.0//EN" "skin.dtd">

<Theme version="2.0" magnet="20" alpha="255" movealpha="192">
<ThemeInfo name="test" author="mistakes"
email="mistake@test.test" webpage="http://www.test.com"/>

<Bitmap id="mainbody" file="body.png" alphacolor="#FF0000"/>
<Bitmap id="close" file="close.png" alphacolor="#00FF00"/>
<Bitmap id="close_onclick" file="close_onclick.png" alphacolor="#00FF00"/>
<Bitmap id="close_mouseover" file="close_mouseover.png" alphacolor="#00FF00"/>
<Bitmap id="fast" file="fast.png" alphacolor="#FF0000"/>
<Bitmap id="fast_click" file="fast_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="fast_disabled" file="fast_disabled.png" alphacolor="#FF0000"/>
<Bitmap id="rev" file="rev.png" alphacolor="#FF0000"/>
<Bitmap id="rev_click" file="rev_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="pause" file="pause.png" alphacolor="#FF0000"/>
<Bitmap id="pause_onclick" file="pause_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="play" file="play.png" alphacolor="#FF0000"/>
<Bitmap id="play_onclick" file="play_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="snappy" file="snap.png" alphacolor="#FF0000"/>
<Bitmap id="snappy_onclick" file="snap_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="reduce" file="reduce.png" alphacolor="#FF0000"/>
<Bitmap id="reduce_mouseover" file="reduce_mouseover.png" alphacolor="#FF0000"/>
<Bitmap id="reduce_onclick" file="reduce_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="reduce_disabled" file="reduce_disabled.png" alphacolor="#FF0000"/>
<Bitmap id="slider" file="slider.png" alphacolor="#FF0000"/>
<Bitmap id="slider_onclick" file="slider_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="slider_playlist" file="slider_playlist.png" alphacolor="#FF0000"/>
<Bitmap id="slider_volume" file="slider_volume.png" alphacolor="#FF0000"/>
<Bitmap id="slider_volume_onclick" file="slider_volume_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="slow" file="rev.png" alphacolor="#FF0000"/>
<Bitmap id="slow_disabled" file="slow_disabled.png" alphacolor="#FF0000"/>
<Bitmap id="slow_onclick" file="rev_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="stop" file="stop.png" alphacolor="#FF0000"/>
<Bitmap id="stop_disabled" file="stop_disabled.png" alphacolor="#FF0000"/>
<Bitmap id="stop_onclick" file="stop_onclick.png" alphacolor="#FF0000"/>
<Bitmap id="volume_radial" file="volume.png" alphacolor="#FF0000"/>

<Font id="default_font" file="FreeSansBold.ttf" size="15"/>
<Font id="playlist_font" file="FreeSansBold.ttf" size="12"/>

<Window x="250" y="152" dragdrop="true">

<Layout id="mainlayout" width="250" height="152">
<Group x="0" y="0">
<Anchor x="7" y="151" points="(0,0)" priority="100"/>
<Image x="0" y="0" image="mainbody" action="move"/>
<Text font="default_font" width="70" x="287" y="79" text="$T" color="#000000"/>
<Button x="100" y="44" up="fast" down="fast_click" over="fast" action="vlc.faster()" tooltiptext="Faster"/>
<Button x="163" y="82" up="snappy" down="snappy_onclick" over="snappy" action="vlc.snapshot()" tooltiptext="Snapshot"/>
<Button x="100" y="82" up="slow" down="slow_onclick" over="slow" action="vlc.slower()" tooltiptext="Slower"/>
<Checkbox x="17" y="44" up1="play" up2="pause" down1="play_onclick" down2="pause_onclick" state="vlc.isPlaying" action1="vlc.play()" action2="vlc.pause()" tooltiptext1="Play" tooltiptext2="Pause"/>
<Button x="8" y="5" up="close" down="close_onclick" over="close_mouseover" action="vlc.quit()" tooltiptext="Quit VC" help="quit"/>
<Button x="29" y="5" up="reduce" down="reduce_onclick" over="reduce_mouseover" action="vlc.minimize()" tooltiptext="Minimize VC" help="quit"/>
<Slider id="time_slider" x="24" y="130" up="slider" down="slider_onclick" points="(0,0),(204,0)" value="time" visible="vlc.isSeekable and not vlc.isStopped" tooltiptext="Time: $T"/>
<Slider id="volume_slider" x="228" y="29" up="slider_volume" down="slider_volume_onclick" points="(0,77),(0,0)" value="volume" tooltiptext="Volume: $V%"/>
</Group>
</Layout>
</Window>


</Theme>

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 27 Sep 2006 09:02

VLC version? OS? Did you try with a nightly build?
Did you use the same graphics as the OSX skin (so i can try reproducing the bug)?

This message indicates a bug, probably in the skins module itself, and maybe in your skin as well (or both :-)). It would be very useful if you could manage to find out which control(s) cause the problem. For example, when do you get the message exactly? I suppose it is when moving the mouse over a particular control, or type of control. You can also comment them in the XML file to confirm that they are responsible for the messages.

cellplex
Blank Cone
Blank Cone
Posts: 19
Joined: 23 Sep 2005 23:20

Postby cellplex » 27 Sep 2006 23:18

Hi, this is with the 0.8.5 tags build. I get the error whenever I mouse over any of the buttons but not if I just hover the mouse pointer on an inactive part of the skin nor when I right click to bring up a menu. I've tried using both the original buttons and mine, same error. Can pm you a download link of the vlt if you would like ?

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 28 Sep 2006 08:35

Can pm you a download link of the vlt if you would like ?
Yes please, it would be very useful to debug.


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 5 guests