Skip to content

Commit

Permalink
InputConfigDialog: use SelectObjectAsSource in UpdateBitmaps
Browse files Browse the repository at this point in the history
Fixes issue [Configuring an Emulated Wiimote crashes the application on
OS X 10.12 Sierra][1]

[1]: https://bugs.dolphin-emu.org/issues/9832
  • Loading branch information
ligfx committed Oct 9, 2016
1 parent 283c681 commit 6b2f6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 6b2f6e3

Please sign in to comment.