summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_row_labels.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-11-04 20:33:26 +0000
committerCarl Hetherington <carl@carlh.net>2011-11-04 20:33:26 +0000
commit16884aff2a2c03f613ded8088defbc1c4d546576 (patch)
treed648e1b1796283d9a2ff76c55a246cfd5450aec3 /gtk2_ardour/port_matrix_row_labels.cc
parent6cbc4fed44291211404596b2fd7276fd1145a874 (diff)
Fix port matrix dimensions on non-24-bit displays (#4077).
git-svn-id: svn://localhost/ardour2/branches/3.0@10444 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_row_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_row_labels.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix_row_labels.cc b/gtk2_ardour/port_matrix_row_labels.cc
index 8c8dcd4dff..e8a14b713c 100644
--- a/gtk2_ardour/port_matrix_row_labels.cc
+++ b/gtk2_ardour/port_matrix_row_labels.cc
@@ -38,7 +38,7 @@ PortMatrixRowLabels::PortMatrixRowLabels (PortMatrix* m, PortMatrixBody* b)
void
PortMatrixRowLabels::compute_dimensions ()
{
- GdkPixmap* pm = gdk_pixmap_new (NULL, 1, 1, 24);
+ GdkPixmap* pm = gdk_pixmap_new (NULL, 1, 1, gdk_visual_get_depth (gdk_visual_get_system ()));
gdk_drawable_set_colormap (pm, gdk_colormap_get_system());
cairo_t* cr = gdk_cairo_create (pm);