update dc.DrawBitmap calls to use get_bitmap

This commit is contained in:
Ocraftyone 2023-11-07 05:15:09 -05:00
parent e114881ed5
commit cdff9ba9fa
No known key found for this signature in database
GPG key ID: 85836ED21AD4D125
22 changed files with 75 additions and 75 deletions

View file

@ -114,7 +114,7 @@ void ImageSwitchButton::render(wxDC& dc)
wxPoint pt = wxPoint((size.x - icon.GetBmpWidth()) / 2, (size.y - content_height) / 2);
if (icon.bmp().IsOk()) {
dc.DrawBitmap(icon.bmp(), pt);
dc.DrawBitmap(icon.get_bitmap(), pt);
pt.y += m_padding + icon.GetBmpHeight();
}
pt.x = (size.x - textSize.x) / 2;
@ -300,7 +300,7 @@ void FanSwitchButton::render(wxDC& dc)
pt = wxPoint((size.x - icon.GetBmpWidth()) / 2, content_height + textSize.y);
if (icon.bmp().IsOk()) {
dc.DrawBitmap(icon.bmp(), pt);
dc.DrawBitmap(icon.get_bitmap(), pt);
pt.y += m_padding + icon.GetBmpHeight();
}