Mercurial > dwindows
changeset 952:abb9203adc05
Use NSCompositeSourceOver for bitblting that respects transparency of the source
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 01 May 2011 05:30:11 +0000 |
parents | 7193401d139a |
children | 2dfc06afc7d3 |
files | mac/dw.m |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Sun May 01 04:40:24 2011 +0000 +++ b/mac/dw.m Sun May 01 05:30:11 2011 +0000 @@ -515,7 +515,7 @@ // apply the transform: [t concat]; [image drawAtPoint:NSMakePoint(bltinfo->xdest, bltinfo->ydest) fromRect:NSMakeRect(bltinfo->xsrc, bltinfo->ysrc, bltinfo->width, bltinfo->height) - operation:NSCompositeCopy fraction:1.0]; + operation:NSCompositeSourceOver fraction:1.0]; [bltsrc release]; [image release]; } @@ -815,13 +815,13 @@ -(void)setMenu:(NSMenu *)input { windowmenu = input; [windowmenu retain]; } -(void)menuHandler:(id)sender { _event_handler(sender, nil, 8); } -(void)mouseDragged:(NSEvent *)theEvent { _event_handler(self, theEvent, 5); } --(void)mouseMoved:(NSEvent *)theEvent -{ +-(void)mouseMoved:(NSEvent *)theEvent +{ id hit = [self hitTest:[theEvent locationInWindow]]; - + if([hit isMemberOfClass:[DWRender class]]) - { - _event_handler(hit, theEvent, 5); + { + _event_handler(hit, theEvent, 5); } } @end