From 6b2f6e3884f6560972ea26cd2cf91f0c37268745 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Sun, 9 Oct 2016 15:31:39 -0700 Subject: [PATCH] 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 --- Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp b/Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp index fa4f10ff13..f9add52c26 100644 --- a/Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp +++ b/Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp @@ -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();