mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Indicate UTF8 literals - fixes glyph rendering with MSVC (2/2)
This commit is contained in:
parent
2c7f8eeb97
commit
c44b40afd7
17 changed files with 52 additions and 53 deletions
|
|
@ -1345,12 +1345,11 @@ AudioClock::set_bbt (timecnt_t const & w)
|
|||
|
||||
TempoMetric m (TempoMap::use()->metric_at (pos));
|
||||
|
||||
/* UTF8 1/4 note and 1/8 note ♩ (\u2669) and ♪ (\u266a) are n/a on Windows */
|
||||
if (m.tempo().note_type() == 4) {
|
||||
snprintf (buf, sizeof(buf), "\u2669 = %.3f", m.tempo().note_types_per_minute_at_DOUBLE (pos));
|
||||
snprintf (buf, sizeof(buf), u8"\u2669 = %.3f", m.tempo().note_types_per_minute_at_DOUBLE (pos));
|
||||
_left_btn.set_text (string_compose ("%1", buf), false);
|
||||
} else if (m.tempo().note_type() == 8) {
|
||||
snprintf (buf, sizeof(buf), "\u266a = %.3f", m.tempo().note_types_per_minute_at_DOUBLE (pos));
|
||||
snprintf (buf, sizeof(buf), u8"\u266a = %.3f", m.tempo().note_types_per_minute_at_DOUBLE (pos));
|
||||
_left_btn.set_text (string_compose ("%1", buf), false);
|
||||
} else {
|
||||
snprintf (buf, sizeof(buf), "1/%d = %.3f",m.tempo().note_type(), m.tempo().note_types_per_minute_at_DOUBLE (pos));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue