fix up formatting of SMPTE time printing in tranzport control code
git-svn-id: svn://localhost/trunk/ardour2@526 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5dd853378c
commit
11a9ea1c80
|
@ -37,7 +37,6 @@ bool GTK_ARDOUR::use_vst = true;
|
|||
bool GTK_ARDOUR::new_session = false;
|
||||
char* GTK_ARDOUR::curvetest_file = 0;
|
||||
bool GTK_ARDOUR::try_hw_optimization = false;
|
||||
bool GTK_ARDOUR::use_gtk_theme = false;
|
||||
|
||||
using namespace GTK_ARDOUR;
|
||||
|
||||
|
@ -116,10 +115,6 @@ GTK_ARDOUR::parse_opts (int argc, char *argv[])
|
|||
show_key_actions = true;
|
||||
break;
|
||||
|
||||
case 'g':
|
||||
use_gtk_theme = true;
|
||||
break;
|
||||
|
||||
case 'n':
|
||||
no_splash = false;
|
||||
break;
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h>
|
||||
#include <float.h>
|
||||
#include <sys/time.h>
|
||||
#include <errno.h>
|
||||
|
@ -327,19 +329,19 @@ TranzportControlProtocol::show_transport_time ()
|
|||
session->smpte_time (where, smpte);
|
||||
|
||||
if (smpte.negative) {
|
||||
sprintf (buf, "-%02ld:", smpte.hours);
|
||||
sprintf (buf, "-%02" PRIu32 ":", smpte.hours);
|
||||
} else {
|
||||
sprintf (buf, " %02ld:", smpte.hours);
|
||||
sprintf (buf, " %02" PRIu32 ":", smpte.hours);
|
||||
}
|
||||
print (1, 8, buf);
|
||||
|
||||
sprintf (buf, "%02ld:", smpte.minutes);
|
||||
sprintf (buf, "%02" PRIu32 ":", smpte.minutes);
|
||||
print (1, 12, buf);
|
||||
|
||||
sprintf (buf, "%02ld:", smpte.seconds);
|
||||
sprintf (buf, "%02" PRIu32 ":", smpte.seconds);
|
||||
print (1, 15, buf);
|
||||
|
||||
sprintf (buf, "%02ld", smpte.frames);
|
||||
sprintf (buf, "%02" PRIu32, smpte.frames);
|
||||
print (1, 18, buf);
|
||||
|
||||
last_where = where;
|
||||
|
|
Loading…
Reference in New Issue
Block a user