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

feat: hidpi support for image module #3565

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

saveman71
Copy link
Contributor

@saveman71 saveman71 commented Sep 3, 2024

The image module renders SVG poorly on an hidpi screen. 2x PNG are also blurry.

This fixes that. I'm not a cpp expert and it was my first time using the image module so I hope this doesn't break anything.

Cheers!

@saveman71
Copy link
Contributor Author

saveman71 commented Sep 3, 2024

I based my fix on https://gitlab.gnome.org/GNOME/gtk/-/issues/613 and then found that some code in other places already do this (kinda) (grep for create_surface_from_pixbuf)

@Alexays Alexays merged commit 1210bcd into Alexays:master Sep 13, 2024
8 of 9 checks passed
@Alexays
Copy link
Owner

Alexays commented Sep 13, 2024

LGTM thx :)

@saveman71 saveman71 deleted the hidpi_image_module branch September 13, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants