Merge pull request #4334 from ligfx/fixcontrollerdialog
InputConfigDialog: use SelectObjectAsSource in UpdateBitmaps
This commit is contained in:
commit
e30d31aa66
|
@ -500,7 +500,7 @@ void InputConfigDialog::UpdateBitmaps(wxTimerEvent& WXUNUSED(event))
|
||||||
|
|
||||||
wxBitmap bitmap(g->static_bitmap->GetBitmap());
|
wxBitmap bitmap(g->static_bitmap->GetBitmap());
|
||||||
// NOTE: Selecting the bitmap inherits the bitmap's ScaleFactor onto the DC as well.
|
// NOTE: Selecting the bitmap inherits the bitmap's ScaleFactor onto the DC as well.
|
||||||
dc.SelectObject(bitmap);
|
dc.SelectObjectAsSource(bitmap);
|
||||||
dc.SetBackground(*wxWHITE_BRUSH);
|
dc.SetBackground(*wxWHITE_BRUSH);
|
||||||
dc.Clear();
|
dc.Clear();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue