diff options
author | rowanbeentje <rowan@beent.je> | 2014-02-10 01:39:25 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2014-02-10 01:39:25 +0000 |
commit | 5c0212a51d21f06f3beb62059b0b17c6ee1d8c91 (patch) | |
tree | 0995a27bf8b9190a6a08d2e1e403dfa3d1af9da0 | |
parent | 5c8a9b1a15ffd1ecf96340d3f43a4ca916665b9b (diff) | |
download | sequelpro-5c0212a51d21f06f3beb62059b0b17c6ee1d8c91.tar.gz sequelpro-5c0212a51d21f06f3beb62059b0b17c6ee1d8c91.tar.bz2 sequelpro-5c0212a51d21f06f3beb62059b0b17c6ee1d8c91.zip |
Fix double-size window preview when dragging tabs on a retina screen
-rw-r--r-- | Source/SPWindowControllerDelegate.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPWindowControllerDelegate.m b/Source/SPWindowControllerDelegate.m index 389f9b56..d8637ac4 100644 --- a/Source/SPWindowControllerDelegate.m +++ b/Source/SPWindowControllerDelegate.m @@ -384,6 +384,7 @@ // Capture an image of the entire window CGImageRef windowImage = CGWindowListCreateImage(CGRectNull, kCGWindowListOptionIncludingWindow, (unsigned int)[[self window] windowNumber], kCGWindowImageBoundsIgnoreFraming); NSBitmapImageRep *viewRep = [[NSBitmapImageRep alloc] initWithCGImage:windowImage]; + [viewRep setSize:[[self window] frame].size]; [viewImage addRepresentation:viewRep]; [viewRep release]; |