mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:00:38 +00:00
Make sure there is a main window when starting up.
Correct view image caching. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25670 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3cbe23c511
commit
36c066e994
3 changed files with 25 additions and 1 deletions
|
@ -2531,7 +2531,6 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
|
|||
colorSpaceName: space
|
||||
bytesPerRow: 0
|
||||
bitsPerPixel: 0];
|
||||
[self cacheDisplayInRect: rect toBitmapImageRep: bitmap];
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
|
@ -2541,7 +2540,9 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
|
|||
NSDictionary *dict;
|
||||
NSData *imageData;
|
||||
|
||||
[self lockFocus];
|
||||
dict = [GSCurrentContext() GSReadRect: rect];
|
||||
[self unlockFocus];
|
||||
imageData = RETAIN([dict objectForKey: @"Data"]);
|
||||
// FIXME: Copy the image data to the bitmap
|
||||
memcpy([bitmap bitmapData], [imageData bytes], [imageData length]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue