Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better provide a size.

  • Loading branch information...
commit 6eaf343a37211c917ceb3828dbc6b83981e35402 1 parent 31810b6
@uliwitness authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  NSWindow+ULIZoomEffect.m
View
2  NSWindow+ULIZoomEffect.m
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.