summaryrefslogtreecommitdiff
path: root/src/video/cocoa
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-25 19:05:34 +0000
committerrubidium <rubidium@openttd.org>2010-08-25 19:05:34 +0000
commit134712ec646d02fcc8e99a8bffe7eee02d251e96 (patch)
tree932a4edcadf0bba7b014020e4e18cf359803be4e /src/video/cocoa
parent1e0e4b8cb67bcbb6c9fc7dfbd6a8824b19ece985 (diff)
downloadopenttd-134712ec646d02fcc8e99a8bffe7eee02d251e96.tar.xz
(svn r20619) -Fix [FS#4070]: [OSX] Limit minimum window size to 64x64 like all other platforms (matheweis)
Diffstat (limited to 'src/video/cocoa')
-rw-r--r--src/video/cocoa/wnd_quartz.mm2
-rw-r--r--src/video/cocoa/wnd_quickdraw.mm2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm
index 18a87e2aa..c7ec15c0e 100644
--- a/src/video/cocoa/wnd_quartz.mm
+++ b/src/video/cocoa/wnd_quartz.mm
@@ -456,6 +456,8 @@ bool WindowQuartzSubdriver::SetVideoMode(int width, int height)
[ this->window setMiniwindowTitle:nsscaption ];
[ nsscaption release ];
+ [ this->window setContentMinSize:NSMakeSize(64.0f, 64.0f) ];
+
[ this->window setAcceptsMouseMovedEvents:YES ];
[ this->window setViewsNeedDisplay:NO ];
diff --git a/src/video/cocoa/wnd_quickdraw.mm b/src/video/cocoa/wnd_quickdraw.mm
index f4c72cc1f..5d7ce0099 100644
--- a/src/video/cocoa/wnd_quickdraw.mm
+++ b/src/video/cocoa/wnd_quickdraw.mm
@@ -386,6 +386,8 @@ bool WindowQuickdrawSubdriver::SetVideoMode(int width, int height)
[ this->window setMiniwindowTitle:nsscaption ];
[ nsscaption release ];
+ [ this->window setContentMinSize:NSMakeSize(64.0f, 64.0f) ];
+
[ this->window setAcceptsMouseMovedEvents:YES ];
[ this->window setViewsNeedDisplay:NO ];