diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-05 12:51:05 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-05 12:51:05 +0000 |
commit | cd12fdf447936b6998901cde5cd5946bca2c9cfc (patch) | |
tree | f80c91f4349a16a10f1ea641466fd073d7443139 /gtk2_ardour | |
parent | 05fb76e65384603bc56395ef9b3dbf6fe165bcfa (diff) |
better acid trip big clock - do not use with any other medication
git-svn-id: svn://localhost/ardour2/branches/3.0@6736 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui_ed.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index 0cc114bc6d..deb2cfc3dd 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -604,6 +604,8 @@ ARDOUR_UI::idle_big_clock_text_resizer (int win_w, int win_h) scale = min (((double) winw / (double)old_big_clock_width), ((double) winh / (double) old_big_clock_height)); + + cerr << "Window scaled by " << scale << endl; Pango::FontDescription fd (big_clock.get_style()->get_font()); string family = fd.get_family(); @@ -617,8 +619,12 @@ ARDOUR_UI::idle_big_clock_text_resizer (int win_w, int win_h) original_size = size; size = lrintf (size * scale); + size -= 2; if (size != original_size) { + + cerr << "new font size = " << size << endl; + char buf[family.length()+16]; snprintf (buf, family.length()+16, "%s %d", family.c_str(), size); |