Indicate UTF8 literals - fixes glyph rendering with MSVC (2/2)

This commit is contained in:
Robin Gareus 2023-01-16 21:41:22 +01:00
parent 2c7f8eeb97
commit c44b40afd7
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
17 changed files with 52 additions and 53 deletions

View file

@ -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));