Problem with resolution change and aspect ratio - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Problem with resolution change and aspect ratio (/showthread.php?tid=106859) |
Problem with resolution change and aspect ratio - wyrm - 2011-08-03 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"> Wyrm (xTV-SAF) - Hitcher - 2011-08-03 Seeing as your image is behind the icon can't you simply add it to the icon control as a border texture? - wyrm - 2011-08-03 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) - jmarshall - 2011-08-03 Does it stay that way if you restart into that resolution, or does it occur only when you switch resolutions? - wyrm - 2011-08-03 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) |