Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for HiDPI screens. #7

Closed
knokelmaat opened this issue Mar 13, 2023 · 1 comment
Closed

Support for HiDPI screens. #7

knokelmaat opened this issue Mar 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@knokelmaat
Copy link

Hi!

Gtk supports HiDPI scaling at integer scaling factors. However, for each game, the cover is saved at the LoDPI resolution (300x200). When scaling is enabled (e.g. in GNOME using display settings) the UI is cleanly rendered at double the size, but the cover images are blurry, as it is the low resolution image that is being upscaled.

A solution to this would be to save the images in the original resolution (what steam does) and apply scaling to a factor of 300 x 200 as needed when loading the covers. I implemented an initial version of this and it seems to work correctly.

The only downside is that a little more storage space is used (the original image files are stored in the data folder instead of the already scaled ones).

It is probably easier to just see it in code, I'll make a copy of the repo and show you my changes :).

@knokelmaat
Copy link
Author

Original, blurry at 200% scaling.

Screenshot from 2023-03-13 19-06-18

New, sharp at 200% scaling

Screenshot from 2023-03-13 19-03-29

@kra-mo kra-mo closed this as completed in 592a2d4 Mar 13, 2023
@kra-mo kra-mo added the enhancement New feature or request label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants