Mercurial > hg > openttd
changeset 15931:9f6b79adc58d draft
(svn r20619) -Fix [FS#4070]: [OSX] Limit minimum window size to 64x64 like all other platforms (matheweis)
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 25 Aug 2010 19:05:34 +0000 |
parents | ffc487f3e052 |
children | be191a471e19 |
files | src/video/cocoa/wnd_quartz.mm src/video/cocoa/wnd_quickdraw.mm |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -456,6 +456,8 @@ [ this->window setMiniwindowTitle:nsscaption ]; [ nsscaption release ]; + [ this->window setContentMinSize:NSMakeSize(64.0f, 64.0f) ]; + [ this->window setAcceptsMouseMovedEvents:YES ]; [ this->window setViewsNeedDisplay:NO ];
--- a/src/video/cocoa/wnd_quickdraw.mm +++ b/src/video/cocoa/wnd_quickdraw.mm @@ -386,6 +386,8 @@ [ this->window setMiniwindowTitle:nsscaption ]; [ nsscaption release ]; + [ this->window setContentMinSize:NSMakeSize(64.0f, 64.0f) ]; + [ this->window setAcceptsMouseMovedEvents:YES ]; [ this->window setViewsNeedDisplay:NO ];