[confirm] Scrollbars not scaled to skinsize (1 Viewer)

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    I just realized, looking through the code of GUIVerticalScrollbar.cs and GUIHorizontalScrollbar.cs, that the scrollbarcontrols are never resized to skinsize like other controls are.

    Look ath the attached screenshots in 1080p and 720p. Here the scrollbars are excact same size, even though the rest of the screen is scaled.

    Digging deeper I also found that GUIWaitCursor.cs is also not being scaled, and the position is hardcoded to center - 48 pixels:

    Code:
            // dirty hack because the files are 96x96 - unfortunately no property gives the correct size at runtime when init is called :S
            int scaleWidth = (GUIGraphicsContext.Width / 2) - 48;
            int scaleHeigth = (GUIGraphicsContext.Height / 2) - 48;

    This means that if you want to use a waitcursor in another size than 96x96 you need to do a lot of math to fix the sizes of the waitcursor images in the centre of the screen.
     

    Attachments

    • 1080p.jpg
      1080p.jpg
      346.7 KB
    • 720p.jpg
      720p.jpg
      167.3 KB

    ysmp

    Design Group
  • Team MediaPortal
  • May 17, 2008
    1,863
    744
    Seoul.
    Home Country
    South Korea South Korea
    hi pilehave ! wich skin is this screenshots from ?

    wow look great ....:eek:
     

    Users who are viewing this thread

    Top Bottom