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

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Denmark Denmark
    • Thread starter
    • Moderator
    • #1
    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

    ysmp

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

    wow look great ....:eek:
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    Top Bottom