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
This commit is contained in:
Carl Hetherington 2011-11-04 20:33:26 +00:00
parent 6cbc4fed44
commit 16884aff2a
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ PortMatrixColumnLabels::PortMatrixColumnLabels (PortMatrix* m, PortMatrixBody* b
void
PortMatrixColumnLabels::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);

View File

@ -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);