Mercurial > dwindows
comparison mac/dw.m @ 1951:e30164bc48fb
Mac: Set needsDisplay=YES after acquiring the cachedBitmapRep so it will
redraw.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 11 Jul 2019 09:50:30 +0000 |
parents | bb4eaf02cdaf |
children | 8ce5c562348f |
comparison
equal
deleted
inserted
replaced
1950:bb4eaf02cdaf | 1951:e30164bc48fb |
---|---|
882 if(!cachedDrawingRep) | 882 if(!cachedDrawingRep) |
883 { | 883 { |
884 cachedDrawingRep = [self bitmapImageRepForCachingDisplayInRect:self.bounds]; | 884 cachedDrawingRep = [self bitmapImageRepForCachingDisplayInRect:self.bounds]; |
885 [cachedDrawingRep retain]; | 885 [cachedDrawingRep retain]; |
886 } | 886 } |
887 self.needsDisplay = YES; | |
887 return cachedDrawingRep; | 888 return cachedDrawingRep; |
888 } | 889 } |
889 #endif | 890 #endif |
890 -(void)mouseDown:(NSEvent *)theEvent | 891 -(void)mouseDown:(NSEvent *)theEvent |
891 { | 892 { |