Mercurial > dwindows
comparison mac/dw.m @ 737:680c7f365d0d
Slight change to the window initial size fix... still don't like this solution.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 15 Mar 2011 20:06:00 +0000 |
parents | 5b48519a7fb2 |
children | 52d5ed00f892 |
comparison
equal
deleted
inserted
replaced
736:5b48519a7fb2 | 737:680c7f365d0d |
---|---|
5742 if([window isMiniaturized]) | 5742 if([window isMiniaturized]) |
5743 { | 5743 { |
5744 [window deminiaturize:nil]; | 5744 [window deminiaturize:nil]; |
5745 } | 5745 } |
5746 /* If we haven't been sized by a call.. */ | 5746 /* If we haven't been sized by a call.. */ |
5747 if(rect.size.width < 1 || rect.size.height < 1) | 5747 if(rect.size.width < 5 || rect.size.height < 5) |
5748 { | 5748 { |
5749 /* Make a sane default size because MacOS won't automatically */ | 5749 /* Make a sane default size because MacOS won't automatically */ |
5750 [window setContentSize:NSMakeSize(200,150)]; | 5750 [window setContentSize:NSMakeSize(200,150)]; |
5751 } | 5751 } |
5752 [window makeKeyAndOrderFront:nil]; | 5752 [window makeKeyAndOrderFront:nil]; |