Permalink
Browse files

Better provide a size.

  • Loading branch information...
uliwitness committed Mar 5, 2011
1 parent 31810b6 commit 6eaf343a37211c917ceb3828dbc6b83981e35402
Showing with 1 addition and 1 deletion.
  1. +1 −1 NSWindow+ULIZoomEffect.m
View
@@ -76,7 +76,7 @@ -(NSImage*) uli_imageWithSnapshotForceActive: (BOOL)doForceActive
// Create a bitmap rep from the window and convert to NSImage...
NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithCGImage: windowImage];
- NSImage *image = [[NSImage alloc] init];
+ NSImage *image = [[NSImage alloc] initWithSize: NSMakeSize(CGImageGetWidth(windowImage),CGImageGetHeight(windowImage))];
[image addRepresentation: bitmapRep];
[bitmapRep release];
CGImageRelease(windowImage);

0 comments on commit 6eaf343

Please sign in to comment.