diff options
author | rubidium <rubidium@openttd.org> | 2010-08-25 19:05:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-25 19:05:34 +0000 |
commit | 134712ec646d02fcc8e99a8bffe7eee02d251e96 (patch) | |
tree | 932a4edcadf0bba7b014020e4e18cf359803be4e /src/video/cocoa/wnd_quartz.mm | |
parent | 1e0e4b8cb67bcbb6c9fc7dfbd6a8824b19ece985 (diff) | |
download | openttd-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/wnd_quartz.mm')
-rw-r--r-- | src/video/cocoa/wnd_quartz.mm | 2 |
1 files changed, 2 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 ]; |