From 4c1ee264a69537b93e8cb9dfd03a8e6b54672ab8 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sat, 19 Dec 2020 21:59:27 +0100 Subject: Fix: [OSX] Warning about ambiguous method (-Wobjc-multiple-method-names). (#8399) --- src/video/cocoa/wnd_quartz.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm index edc9c5008..228198108 100644 --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -297,7 +297,7 @@ bool WindowQuartzSubdriver::SetVideoMode(int width, int height, int bpp) this->window_height = height; this->buffer_depth = bpp; - [ this->window center ]; + [ (OTTD_CocoaWindow *)this->window center ]; /* Only recreate the view if it doesn't already exist */ if (this->cocoaview == nil) { -- cgit v1.2.3-70-g09d2