mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:30:38 +00:00
Use the window view, not the content view, to draw cached images
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14161 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a990e29f4e
commit
8969a1d455
1 changed files with 3 additions and 3 deletions
|
@ -1899,7 +1899,7 @@ static NSNotificationCenter *nc = nil;
|
|||
NSView *cacheView;
|
||||
NSRect cacheRect;
|
||||
|
||||
aRect = NSIntegralRect (NSIntersectionRect(aRect, [_contentView frame]));
|
||||
aRect = NSIntegralRect (NSIntersectionRect (aRect, [_wv frame]));
|
||||
_cachedImageOrigin = aRect.origin;
|
||||
DESTROY(_cachedImage);
|
||||
|
||||
|
@ -1929,11 +1929,11 @@ static NSNotificationCenter *nc = nil;
|
|||
{
|
||||
return;
|
||||
}
|
||||
[_contentView lockFocus];
|
||||
[_wv lockFocus];
|
||||
NSCopyBits ([[_cachedImage window] gState],
|
||||
[_cachedImage rect],
|
||||
_cachedImageOrigin);
|
||||
[_contentView unlockFocus];
|
||||
[_wv unlockFocus];
|
||||
}
|
||||
|
||||
- (void) useOptimizedDrawing: (BOOL)flag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue