diff options
author | Carl Hetherington <cth@carlh.net> | 2020-01-11 01:15:17 +0100 |
---|---|---|
committer | Carl Hetherington <cth@carlh.net> | 2020-01-11 01:17:42 +0100 |
commit | 1f14a9d9a53f86124b657dfe3a1ce6c7786cbaf4 (patch) | |
tree | ad53cd70b453a9cb44ae24ab63f150550137ea6b /gtk2_ardour/port_matrix_component.cc | |
parent | a883afbd64c3b6703445fca64aa740ac1ffdde06 (diff) |
Scale the port matrix with the GUI/font-scaling setting.
Diffstat (limited to 'gtk2_ardour/port_matrix_component.cc')
-rw-r--r-- | gtk2_ardour/port_matrix_component.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/port_matrix_component.cc b/gtk2_ardour/port_matrix_component.cc index fe58289825..c3a430875d 100644 --- a/gtk2_ardour/port_matrix_component.cc +++ b/gtk2_ardour/port_matrix_component.cc @@ -21,6 +21,7 @@ #include "port_matrix_component.h" #include "port_matrix.h" #include "port_matrix_body.h" +#include "ui_config.h" using namespace std; @@ -81,6 +82,7 @@ PortMatrixComponent::get_pixmap (GdkDrawable *drawable) /* render */ cairo_t* cr = gdk_cairo_create (_pixmap); + cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10); render (cr); cairo_destroy (cr); @@ -215,3 +217,9 @@ PortMatrixComponent::position_to_channel (double p, double, boost::shared_ptr<co return ARDOUR::BundleChannel (boost::shared_ptr<ARDOUR::Bundle> (), -1); } + +uint32_t +PortMatrixComponent::grid_spacing () +{ + return UIConfiguration::instance().get_ui_scale() * 24; +} |