mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 15:36:24 +01:00
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
This commit is contained in:
parent
05fb76e653
commit
cd12fdf447
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue