mirror of https://github.com/OpenTTD/OpenTTD
(svn r20619) -Fix [FS#4070]: [OSX] Limit minimum window size to 64x64 like all other platforms (matheweis)
parent
1e0e4b8cb6
commit
134712ec64
|
@ -456,6 +456,8 @@ bool WindowQuartzSubdriver::SetVideoMode(int width, int height)
|
||||||
[ this->window setMiniwindowTitle:nsscaption ];
|
[ this->window setMiniwindowTitle:nsscaption ];
|
||||||
[ nsscaption release ];
|
[ nsscaption release ];
|
||||||
|
|
||||||
|
[ this->window setContentMinSize:NSMakeSize(64.0f, 64.0f) ];
|
||||||
|
|
||||||
[ this->window setAcceptsMouseMovedEvents:YES ];
|
[ this->window setAcceptsMouseMovedEvents:YES ];
|
||||||
[ this->window setViewsNeedDisplay:NO ];
|
[ this->window setViewsNeedDisplay:NO ];
|
||||||
|
|
||||||
|
|
|
@ -386,6 +386,8 @@ bool WindowQuickdrawSubdriver::SetVideoMode(int width, int height)
|
||||||
[ this->window setMiniwindowTitle:nsscaption ];
|
[ this->window setMiniwindowTitle:nsscaption ];
|
||||||
[ nsscaption release ];
|
[ nsscaption release ];
|
||||||
|
|
||||||
|
[ this->window setContentMinSize:NSMakeSize(64.0f, 64.0f) ];
|
||||||
|
|
||||||
[ this->window setAcceptsMouseMovedEvents:YES ];
|
[ this->window setAcceptsMouseMovedEvents:YES ];
|
||||||
[ this->window setViewsNeedDisplay:NO ];
|
[ this->window setViewsNeedDisplay:NO ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue