Add scaling of dock art as required by scaling.
This commit is contained in:
@@ -765,6 +765,7 @@ void wxAuiDefaultDockArt::DrawPaneButton(wxDC& dc,
|
||||
break;
|
||||
}
|
||||
|
||||
bmp = wxAuiScaleBitmap(bmp, window->GetContentScaleFactor());
|
||||
|
||||
wxRect rect = _rect;
|
||||
|
||||
@@ -791,10 +792,11 @@ void wxAuiDefaultDockArt::DrawPaneButton(wxDC& dc,
|
||||
}
|
||||
|
||||
// draw the background behind the button
|
||||
dc.DrawRectangle(rect.x, rect.y, 16-window->FromDIP(1), 16-window->FromDIP(1));
|
||||
dc.DrawRectangle(rect.x, rect.y,
|
||||
bmp.GetScaledWidth() - window->FromDIP(1),
|
||||
bmp.GetScaledHeight() - window->FromDIP(1));
|
||||
}
|
||||
|
||||
|
||||
// draw the button itself
|
||||
dc.DrawBitmap(bmp, rect.x, rect.y, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user