Mercurial > dwindows
changeset 1782:d056a50196a9
Attempted fix at Mac textured background repeat problems. Thanks to Christoph Sinai
for pointing out what the issue was. :)
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 23 Jul 2012 16:56:08 +0000 |
parents | a532ca0231ad |
children | 9de6d1cc8fb8 |
files | mac/dw.m |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Thu Jul 19 19:46:35 2012 +0000 +++ b/mac/dw.m Mon Jul 23 16:56:08 2012 +0000 @@ -8272,6 +8272,13 @@ } [[window contentView] showWindow]; [window makeKeyAndOrderFront:nil]; + + if(!([window styleMask] & NSResizableWindowMask)) + { + /* Fix incorrect repeat in displaying textured windows */ + [window setAutorecalculatesContentBorderThickness:NO forEdge:NSMinYEdge]; + [window setContentBorderThickness:0.0 forEdge:NSMinYEdge]; + } } return 0; }