From d6f3a006d29341cbefd5d97881ef28a43bf1f757 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 23 Jul 2015 17:13:31 -0400 Subject: [PATCH] scale CairoIcon by Gtkmm2ext::UI::ui_scale --- libs/gtkmm2ext/cairo_icon.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/gtkmm2ext/cairo_icon.cc b/libs/gtkmm2ext/cairo_icon.cc index 1bbf081cdd..2011e6968e 100644 --- a/libs/gtkmm2ext/cairo_icon.cc +++ b/libs/gtkmm2ext/cairo_icon.cc @@ -16,9 +16,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include #include "gtkmm2ext/cairo_icon.h" +#include "gtkmm2ext/gtk_ui.h" using namespace Gtkmm2ext; @@ -44,8 +44,10 @@ CairoIcon::set_fg (uint32_t color) void CairoIcon::render (cairo_t* cr , cairo_rectangle_t* area) { - int width = get_width(); - int height = get_height (); + const double scale = UI::instance()->ui_scale; + int width = get_width() * scale; + int height = get_height () * scale; ArdourIcon::render (cr, icon_type, width, height, Off, fg); } +