summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-19 21:59:27 +0100
committerGitHub <noreply@github.com>2020-12-19 21:59:27 +0100
commit4c1ee264a69537b93e8cb9dfd03a8e6b54672ab8 (patch)
treead0b880c4a1ad69105aca689d4a196b67eede1f1 /src
parentde614131e4e6b5810a7d1773e19f3caae1636b9f (diff)
downloadopenttd-4c1ee264a69537b93e8cb9dfd03a8e6b54672ab8.tar.xz
Fix: [OSX] Warning about ambiguous method (-Wobjc-multiple-method-names). (#8399)
Diffstat (limited to 'src')
-rw-r--r--src/video/cocoa/wnd_quartz.mm2
1 files changed, 1 insertions, 1 deletions
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) {