diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-25 14:37:20 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-25 14:37:20 +0000 |
commit | 926f53244df3d0f43f647f93ee091378ebe101d6 (patch) | |
tree | 4849d5a55869ea3242af40eadd39a053c89c2543 /gtk2_ardour/utils.cc | |
parent | f41f07832338a52d7c6ac8f6e7bbe4971f6c0bd3 (diff) |
carl's wondrous DnD VBox patch - processor boxes are now vboxes and not listviews - which included a couple of minor marker/time axis view patches for opaqueness etc.
git-svn-id: svn://localhost/ardour2/branches/3.0@6174 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r-- | gtk2_ardour/utils.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index e50a39b397..257f68d4df 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -982,7 +982,7 @@ resize_window_to_proportion_of_monitor (Gtk::Window* window, int max_width, int } Glib::RefPtr<Gdk::Pixbuf> -pixbuf_from_ustring(const ustring& name, Pango::FontDescription* font, int clip_width, int clip_height) +pixbuf_from_ustring(const ustring& name, Pango::FontDescription* font, int clip_width, int clip_height, Gdk::Color fg) { static Glib::RefPtr<Gdk::Pixbuf>* empty_pixbuf = 0; @@ -1001,10 +1001,10 @@ pixbuf_from_ustring(const ustring& name, Pango::FontDescription* font, int clip_ cairo_t* cr = cairo_create (surface); cairo_text_extents_t te; - cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 1.0); + cairo_set_source_rgba (cr, fg.get_red_p(), fg.get_green_p(), fg.get_blue_p(), 1.0); cairo_select_font_face (cr, font->get_family().c_str(), CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); - cairo_set_font_size (cr, font->get_size() / Pango::SCALE); + cairo_set_font_size (cr, font->get_size());// / Pango::SCALE); cairo_text_extents (cr, name.c_str(), &te); cairo_move_to (cr, 0.5, 0.5 - te.height / 2 - te.y_bearing + clip_height / 2); |