From 6f4c57260b3ffcd50d29431f003e3cdd0f54af78 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 3 Sep 2021 21:26:05 +0200 Subject: [PATCH] Use wxBitmap::GetUIImage() in wxiOS code It looks like this should be the right function to use, rather than the more generic GetImage() which is going to be renamed in the upcoming commits. --- src/osx/iphone/button.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/iphone/button.mm b/src/osx/iphone/button.mm index 6db36c9852..4fe7f56de3 100644 --- a/src/osx/iphone/button.mm +++ b/src/osx/iphone/button.mm @@ -111,7 +111,7 @@ wxWidgetImplType* wxWidgetImpl::CreateBitmapButton( wxWindowMac* wxpeer, v.frame = r; if (bitmap.IsOk()) - [v setImage:bitmap.GetImage() forState:UIControlStateNormal]; + [v setImage:bitmap.GetUIImage() forState:UIControlStateNormal]; wxWidgetIPhoneImpl* c = new wxWidgetIPhoneImpl( wxpeer, v ); return c;