Re: gtk_icon_theme_load_icon and GDK_SCALE=2 results in blurry icon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/3/2017 4:28 PM, Alexander Shaduri wrote:
> 
> Now matter how I try, I simply cannot get a non-blurry icon. It seems that
> GTK+ looks up an icon of size 64, then scales it to 128. I'd like for it to
> get a 128-size icon directly.
> 
> Specifying 128 as an argument results in a blurry icon of size 256.

Can't rightly say how this could be applied to GdkPixbuf, icons and gtkmm, but
for cairo surfaces you can use cairo_surface_set_device_scale(). This should
prevent the surface from being upscaled. Worked for me.


-- 
O< ascii ribbon - stop html email! - http://arc.pasp.de/

Attachment: 0x8DADE9276759BA74.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux