summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_body.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_body.cc
parenta883afbd64c3b6703445fca64aa740ac1ffdde06 (diff)
Scale the port matrix with the GUI/font-scaling setting.
Diffstat (limited to 'gtk2_ardour/port_matrix_body.cc')
-rw-r--r--gtk2_ardour/port_matrix_body.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/port_matrix_body.cc b/gtk2_ardour/port_matrix_body.cc
index 39aea414df..89ad10b81b 100644
--- a/gtk2_ardour/port_matrix_body.cc
+++ b/gtk2_ardour/port_matrix_body.cc
@@ -28,6 +28,7 @@
#include "port_matrix_column_labels.h"
#include "port_matrix_row_labels.h"
#include "port_matrix_grid.h"
+#include "ui_config.h"
#include "pbd/i18n.h"
@@ -73,6 +74,7 @@ PortMatrixBody::on_expose_event (GdkEventExpose* event)
/* nothing to connect */
cairo_t* cr = gdk_cairo_create (get_window()->gobj());
+ cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10);
cairo_set_source_rgb (cr, 0, 0, 0);
cairo_rectangle (cr, 0, 0, _alloc_width, _alloc_height);
@@ -130,6 +132,7 @@ PortMatrixBody::on_expose_event (GdkEventExpose* event)
}
cairo_t* cr = gdk_cairo_create (get_window()->gobj());
+ cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10);
for (list<PortMatrixComponent*>::iterator i = _components.begin(); i != _components.end(); ++i) {
cairo_save (cr);