Hello fellow programmers! Today I’m asking how to scale properly a Rect based on Screen size as I’m getting weird artifacts with a Rect in a smaller screen size and with that Rect fixed for smaller screen sizes, I’m getting a weird artifact for bigger sizes.
Fix for smaller sizes:
Fix for smaller sizes on bigger screen:
And the same thing viceversa, so that’s why I’m wondering what’s the formula to scale a Rect based on the absolute size of screen.