- 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:
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.
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.