forked from mia/Aegisub
Eliminate CoreText warnings on 10.9 from the audio track cursor
This commit is contained in:
parent
85148002bc
commit
c83b2ace2a
2 changed files with 6 additions and 2 deletions
|
@ -795,9 +795,7 @@ void AudioDisplay::OnPaint(wxPaintEvent&)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (track_cursor_pos >= 0)
|
if (track_cursor_pos >= 0)
|
||||||
{
|
|
||||||
PaintTrackCursor(dc);
|
PaintTrackCursor(dc);
|
||||||
}
|
|
||||||
|
|
||||||
if (redraw_scrollbar)
|
if (redraw_scrollbar)
|
||||||
scrollbar->Paint(dc, HasFocus());
|
scrollbar->Paint(dc, HasFocus());
|
||||||
|
@ -901,6 +899,9 @@ void AudioDisplay::PaintTrackCursor(wxDC &dc) {
|
||||||
|
|
||||||
wxDCFontChanger fc(dc);
|
wxDCFontChanger fc(dc);
|
||||||
wxFont font = dc.GetFont();
|
wxFont font = dc.GetFont();
|
||||||
|
wxString face_name = FontFace("Audio/Track Cursor");
|
||||||
|
if (!face_name.empty())
|
||||||
|
font.SetFaceName(face_name);
|
||||||
font.SetWeight(wxFONTWEIGHT_BOLD);
|
font.SetWeight(wxFONTWEIGHT_BOLD);
|
||||||
dc.SetFont(font);
|
dc.SetFont(font);
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,9 @@
|
||||||
},
|
},
|
||||||
"Spectrum" : true,
|
"Spectrum" : true,
|
||||||
"Start Drag Sensitivity" : 3,
|
"Start Drag Sensitivity" : 3,
|
||||||
|
"Track Cursor" : {
|
||||||
|
"Font Face" : ""
|
||||||
|
},
|
||||||
"Volume" : 50,
|
"Volume" : 50,
|
||||||
"Wheel Default to Zoom" : false,
|
"Wheel Default to Zoom" : false,
|
||||||
"Zoom" : {
|
"Zoom" : {
|
||||||
|
|
Loading…
Reference in a new issue