Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add multi-resolution badge and icon support #17669
This PR adds the last missing piece in the UI scaling support: loading and rendering higher resolution badges. This ended up taking more work than I expected because #17581 didn't hit the right abstraction, so I had to rework some things in the first commit before the second commit could actually work.
- Sprite.Bounds now refers to rectangles in the source image. Use this when copying pixels, etc. - Sprite.Size now refers to sizes in effective pixel coordinates. Use this when rendering. - Sheet.DPIScale has been removed. - "Density" term is introduced to refer to the number of artwork pixels per effective pixel.