Eliminate CoreText warnings on 10.9 from the audio track cursor

This commit is contained in:
Thomas Goyne 2013-12-10 09:18:27 -08:00
parent 85148002bc
commit c83b2ace2a
2 changed files with 6 additions and 2 deletions

View file

@ -795,9 +795,7 @@ void AudioDisplay::OnPaint(wxPaintEvent&)
}
if (track_cursor_pos >= 0)
{
PaintTrackCursor(dc);
}
if (redraw_scrollbar)
scrollbar->Paint(dc, HasFocus());
@ -901,6 +899,9 @@ void AudioDisplay::PaintTrackCursor(wxDC &dc) {
wxDCFontChanger fc(dc);
wxFont font = dc.GetFont();
wxString face_name = FontFace("Audio/Track Cursor");
if (!face_name.empty())
font.SetFaceName(face_name);
font.SetWeight(wxFONTWEIGHT_BOLD);
dc.SetFont(font);

View file

@ -81,6 +81,9 @@
},
"Spectrum" : true,
"Start Drag Sensitivity" : 3,
"Track Cursor" : {
"Font Face" : ""
},
"Volume" : 50,
"Wheel Default to Zoom" : false,
"Zoom" : {