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; NSView *cacheView;
NSRect cacheRect; NSRect cacheRect;
aRect = NSIntegralRect (NSIntersectionRect(aRect, [_contentView frame])); aRect = NSIntegralRect (NSIntersectionRect (aRect, [_wv frame]));
_cachedImageOrigin = aRect.origin; _cachedImageOrigin = aRect.origin;
DESTROY(_cachedImage); DESTROY(_cachedImage);
@ -1929,11 +1929,11 @@ static NSNotificationCenter *nc = nil;
{ {
return; return;
} }
[_contentView lockFocus]; [_wv lockFocus];
NSCopyBits ([[_cachedImage window] gState], NSCopyBits ([[_cachedImage window] gState],
[_cachedImage rect], [_cachedImage rect],
_cachedImageOrigin); _cachedImageOrigin);
[_contentView unlockFocus]; [_wv unlockFocus];
} }
- (void) useOptimizedDrawing: (BOOL)flag - (void) useOptimizedDrawing: (BOOL)flag