summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-01-11 01:15:17 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-11 01:17:42 +0100
commit1f14a9d9a53f86124b657dfe3a1ce6c7786cbaf4 (patch)
treead53cd70b453a9cb44ae24ab63f150550137ea6b /gtk2_ardour/port_matrix_column_labels.cc
parenta883afbd64c3b6703445fca64aa740ac1ffdde06 (diff)
Scale the port matrix with the GUI/font-scaling setting.
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.cc b/gtk2_ardour/port_matrix_column_labels.cc
index ffa6ffd930..ed81933b9e 100644
--- a/gtk2_ardour/port_matrix_column_labels.cc
+++ b/gtk2_ardour/port_matrix_column_labels.cc
@@ -27,6 +27,7 @@
#include "port_matrix_column_labels.h"
#include "port_matrix.h"
#include "port_matrix_body.h"
+#include "ui_config.h"
#include "pbd/i18n.h"
@@ -44,6 +45,7 @@ PortMatrixColumnLabels::compute_dimensions ()
{
cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 200, 200);
cairo_t* cr = cairo_create (surface);
+ cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10);
/* width of the longest bundle name */
_longest_bundle_name = 0;