mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-11 00:53:46 +02:00
Set font colour later.
Set font colour for MemDC AFTER having selected the bitmap object into it. Not needed on Windows, but is needed on Mac and Linux.
This commit is contained in:
@@ -1328,7 +1328,6 @@ void MixerBoard::CreateMuteSoloImages()
|
||||
{
|
||||
// Much of this is similar to TrackInfo::MuteOrSoloDrawFunction.
|
||||
wxMemoryDC dc;
|
||||
dc.SetTextForeground(theTheme.Colour(clrTrackPanelText));
|
||||
wxString str = _("Mute");
|
||||
int textWidth, textHeight;
|
||||
|
||||
@@ -1353,6 +1352,7 @@ void MixerBoard::CreateMuteSoloImages()
|
||||
wxCoord x = bev.x + (bev.width - textWidth) / 2;
|
||||
wxCoord y = bev.y + (bev.height - textHeight) / 2;
|
||||
dc.SetFont(font);
|
||||
dc.SetTextForeground(theTheme.Colour(clrTrackPanelText));
|
||||
dc.DrawText(str, x, y);
|
||||
|
||||
AColor::Bevel(dc, true, bev);
|
||||
|
Reference in New Issue
Block a user