Problem with resolution change and aspect ratio
#1
Hi Guy's,

Yet another one of Wyrm's blindingly obvious issues that everyone will laugh at.

I am currently moving the coding of my skin from PAL to 720p and I'm trying to keep the aspect ratio of my icons when I change resolutions. I'm testing my skin on my 1280 x 1024 monitor with a 1280 x 720 window. So when I display the skin in the window I have 16x9 and when I go fullscreen I have 4x3. Now the problem I'm having is that in 16x9 the icon and it's CD case image frame is the correct aspect ratio. But when I change to 4x3 the aspect ratio of the icon is correct, but the CD case frame is too tall (aspect ratio is not kept). Here is my code that I am using:
PHP Code:
<control type="wraplist" id="54">
            <include>list-
fade</include>
            <
viewtype label="31943">Wraplist</viewtype>
            <
posx>14</posx>
            <
posy>250</posy>
            <
width>1240</width>
            <
height>390</height>
            <
onleft>54</onleft>
            <
onright>54</onright>
            <
onup>9000</onup>
            <
ondown>1254</ondown>
            <
focusposition>0</focusposition>
            <
orientation>horizontal</orientation>
            <
preloaditems>7</preloaditems>
            <
scrolltime>0</scrolltime>
            <
pagecontrol>1254</pagecontrol>
            <
itemlayout height="154" width="154">
                <
control type="image">
                    <
posx>-50</posx>
                    <
posy>204</posy>
                    <
height>154</height>
                    <
width>154</width>
                    <
texture background="true">case-cd.png</texture>
                    <
colordiffuse>UnFocusedCovers</colordiffuse>
                    <
aspectratio aligny="center" align="center">keep</aspectratio>
                    <
visible>Skin.HasSetting(CDcase) + !SubString(ListItem.Icon,Default,Left)</visible>
                </
control>
                <
control type="image">
                    <
posx>-32</posx>
                    <
posy>218</posy>
                    <
height>128</height>
                    <
width>128</width>
                    <
colordiffuse>UnFocusedCovers</colordiffuse>
                    <
texture background="true" fallback="DefaultAlbumCover.png">$INFO
[ListItem.Icon]</texture>
                    <
aspectratio aligny="center" align="center">keep</aspectratio>
                </
control>
            </
itemlayout>
            <
focusedlayout height="366" width="366">
                <
control type="image">
                    <
posx>2</posx>
                    <
posy>65</posy>
                    <
height>305</height>
                    <
width>305</width>
                    <
texture>case-cd.png</texture>
                    <
aspectratio aligny="center">keep</aspectratio>
                    <
visible>Skin.HasSetting(CDcase) + !SubString(ListItem.Icon,Default,Left)</visible>
                </
control>
                <
control type="image">
                    <
posx>36</posx>
                    <
posy>90</posy>
                    <
width>256</width>
                    <
height>256</height>
                    <
texture background="true" fallback="DefaultAlbumCover.png">$INFO
[ListItem.Icon]</texture>
                    <
aspectratio aligny="center" align="center">keep</aspectratio>
                </
control>
            </
focusedlayout>
        </
control
Replys of the form . Wyrm ya goose, try fixing foo will be fine.

Wyrm (xTV-SAF)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions here if you can't access skin settings.

FAQ's located at :- http://kodi.wiki/view/Add-on:AppTV
Reply
#2
Seeing as your image is behind the icon can't you simply add it to the icon control as a border texture?
Reply
#3
Hitcher Wrote:Seeing as your image is behind the icon can't you simply add it to the icon control as a border texture?
Hitcher,

Yes you are probably right, but I allow the users to turn the CD case image on/off so would require two images anyway. Also if I use it as a border texture would that not change the shape of the CD case image if the icons where not exactly the right size and shape? That and the thing that I can't understand is that I use exactly the same image controls in my list view (just not inside an itemlayout block) and it works as I expect. Icon displays correctly, CD case image is stretched up/down but the side to side sizing is correct (and I can't see why)

Wyrm (xTV-SAF)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions here if you can't access skin settings.

FAQ's located at :- http://kodi.wiki/view/Add-on:AppTV
Reply
#4
Does it stay that way if you restart into that resolution, or does it occur only when you switch resolutions?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
jmarshall Wrote:Does it stay that way if you restart into that resolution, or does it occur only when you switch resolutions?
Jonathan,

No mate, stays that way regardless. If I start in full-screen, aspect is still messed up (stretched up/down that is). Will check with a 4x3 window (720x576 to check with PAL resolutions) and report what I find when I get a chance.

Wyrm (xTV-SAF)

Jonathan, just checked with a 720x576 window. Issue still there, so would appear to be a general problem with 4x3 resolutions. Only seems to be a problem in the itemlayout blocks (focused and unfocused), works fine outside of these blocks (in my list view aspect change is working fine)
If required a FULL debug log can now be submitted from the skin in settings->skin settings->support. Or follow instructions here if you can't access skin settings.

FAQ's located at :- http://kodi.wiki/view/Add-on:AppTV
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with resolution change and aspect ratio0