better acid trip big clock - do not use with any other medication
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 5 Mar 2010 12:51:05 +0000 (12:51 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 5 Mar 2010 12:51:05 +0000 (12:51 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6736 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour_ui_ed.cc

index 0cc114bc6df554eebf2824b74e45bf61727cb080..deb2cfc3dd69ab47b32c9f2b001073709e2af105 100644 (file)
@@ -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);