From bc190e7b657f715c5dc21eda1d910d1d3c52664f Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Thu, 11 Jul 2019 00:23:18 -0400 Subject: Render icons as cairo surfaces for HiDPI support --- src/iconthemewrapper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/iconthemewrapper.cpp') diff --git a/src/iconthemewrapper.cpp b/src/iconthemewrapper.cpp index 1e84b31..e44bdcd 100644 --- a/src/iconthemewrapper.cpp +++ b/src/iconthemewrapper.cpp @@ -7,12 +7,12 @@ Glib::RefPtr -procman::IconThemeWrapper::load_icon(const Glib::ustring& icon_name, - int size, Gtk::IconLookupFlags flags) const +procman::IconThemeWrapper::load_icon(const Glib::ustring& icon_name, int size) const { + gint scale = gdk_window_get_scale_factor (gdk_get_default_root_window ()); try { - return Gtk::IconTheme::get_default()->load_icon(icon_name, size, flags); + return Gtk::IconTheme::get_default()->load_icon(icon_name, size, scale, Gtk::ICON_LOOKUP_USE_BUILTIN | Gtk::ICON_LOOKUP_FORCE_SIZE); } catch (Gtk::IconThemeError &error) { -- cgit v1.2.1