summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_clock.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-11-30 22:12:27 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-11-30 22:12:27 +0000
commit577f1571f8e8cf0dc5f6983ea5dd07cc6153f831 (patch)
tree1d904943ab3a5eb79c92e9babb7cc9fa72d4f5de /gtk2_ardour/audio_clock.cc
parentff519d31b43251d0e5cea6c992a6dbc6dd0b90ba (diff)
don't put NDF/DF in clocks if there is no DF/NDF alternative; make deselect-all and invert-selection operations work properly; fix bug in edit range determination with no selected marker; popup dialog when no range can be determined; add new WINDOW modifier to SConscript to allow different conventions on OS X and linux
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2730 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r--gtk2_ardour/audio_clock.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc
index 3a8ccd4d2c..33f522f234 100644
--- a/gtk2_ardour/audio_clock.cc
+++ b/gtk2_ardour/audio_clock.cc
@@ -600,10 +600,15 @@ AudioClock::set_smpte (nframes_t when, bool force)
smpte_upper_info_label->set_text (buf);
- if (session->smpte_drop_frames()) {
- sprintf (buf, "DF");
+ if ((fabs(smpte_frames - 29.97) < 0.0001) || smpte_frames == 30) {
+ if (session->smpte_drop_frames()) {
+ sprintf (buf, "DF");
+ } else {
+ sprintf (buf, "NDF");
+ }
} else {
- sprintf (buf, "NDF");
+ // there is no drop frame alternative
+ buf[0] = '\0';
}
smpte_lower_info_label->set_text (buf);