diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-08-11 14:08:07 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-08-11 14:08:07 (GMT) |
commit | 2f0e2bae061937b0df9e7706be7e265b3fa0b3b0 (patch) | |
tree | 3a76df5f90cc1bd242bf4dc68f2dbcc3b81d5319 /macosx/tkMacOSXXStubs.c | |
parent | 57ad1cd7057d0a9bd8ba4ca1465a9bc44e5b20e4 (diff) | |
parent | acb6f7b259137644e34ba799e20432a0ced9be0a (diff) | |
download | tk-2f0e2bae061937b0df9e7706be7e265b3fa0b3b0.zip tk-2f0e2bae061937b0df9e7706be7e265b3fa0b3b0.tar.gz tk-2f0e2bae061937b0df9e7706be7e265b3fa0b3b0.tar.bz2 |
Fix typo's, debug statements, C++-comment.
Diffstat (limited to 'macosx/tkMacOSXXStubs.c')
-rw-r--r-- | macosx/tkMacOSXXStubs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXXStubs.c b/macosx/tkMacOSXXStubs.c index c0f7c7c..b16b582 100644 --- a/macosx/tkMacOSXXStubs.c +++ b/macosx/tkMacOSXXStubs.c @@ -884,7 +884,7 @@ XGetImage( bitmap_rep = BitmapRepFromDrawableRect(d, x, y,width, height); if ( bitmap_rep == Nil || - [bitmap_rep bitmapFormat] != 0 || + [bitmap_rep bitmapFormat] != 0 || [bitmap_rep samplesPerPixel] != 4 || [bitmap_rep isPlanar] != 0 ) { TkMacOSXDbgMsg("XGetImage: Failed to construct NSBitmapRep"); @@ -894,7 +894,7 @@ XGetImage( NSSize image_size = NSMakeSize(width, height); NSImage* ns_image = [[NSImage alloc]initWithSize:image_size]; [ns_image addRepresentation:bitmap_rep]; - + /* Assume premultiplied nonplanar data with 4 bytes per pixel and alpha last.*/ if ( [bitmap_rep bitmapFormat] == 0 && [bitmap_rep isPlanar ] == 0 && |