InputConfigDialog: use SelectObjectAsSource in UpdateBitmaps
Fixes issue [Configuring an Emulated Wiimote crashes the application on OS X 10.12 Sierra][1] [1]: https://bugs.dolphin-emu.org/issues/9832
This commit is contained in:
parent
283c681f30
commit
6b2f6e3884
|
@ -500,7 +500,7 @@ void InputConfigDialog::UpdateBitmaps(wxTimerEvent& WXUNUSED(event))
|
|||
|
||||
wxBitmap bitmap(g->static_bitmap->GetBitmap());
|
||||
// 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.Clear();
|
||||
|
||||
|
|
Loading…
Reference in New Issue