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:
nico 2002-07-16 17:42:48 +00:00
parent a990e29f4e
commit 8969a1d455

View file

@ -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