clock: pull-up/down display update

git-svn-id: svn://localhost/ardour2/branches/3.0@13484 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Robin Gareus 2012-11-13 20:29:24 +00:00
parent 3f35528f18
commit f761de0d70
1 changed files with 5 additions and 5 deletions

View File

@ -1113,12 +1113,12 @@ AudioClock::set_frames (framepos_t when, bool /*force*/)
float vid_pullup = _session->config.get_video_pullup();
if (vid_pullup == 0.0) {
_right_layout->set_markup (string_compose ("<span size=\"%1\" foreground=\"white\">%2</span>",
INFO_FONT_SIZE, _("<s>pull up/down</s>")));
_right_layout->set_markup (string_compose ("<span size=\"%1\"><span foreground=\"white\">%2 </span><span foreground=\"green\">off</span></span>",
INFO_FONT_SIZE, _("Pull")));
} else {
sprintf (buf, _("%+-6.4f%%"), vid_pullup);
_right_layout->set_markup (string_compose ("<span size=\"%1\" foreground=\"green\">%2</span>",
INFO_FONT_SIZE, buf));
sprintf (buf, _("%+.4f%%"), vid_pullup);
_right_layout->set_markup (string_compose ("<span size=\"%1\"><span foreground=\"white\">%2 </span><span foreground=\"green\">%3</span></span>",
INFO_FONT_SIZE, _("Pull"), buf));
}
}
}