summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXXStubs.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-08-11 14:08:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-08-11 14:08:07 (GMT)
commit2f0e2bae061937b0df9e7706be7e265b3fa0b3b0 (patch)
tree3a76df5f90cc1bd242bf4dc68f2dbcc3b81d5319 /macosx/tkMacOSXXStubs.c
parent57ad1cd7057d0a9bd8ba4ca1465a9bc44e5b20e4 (diff)
parentacb6f7b259137644e34ba799e20432a0ced9be0a (diff)
downloadtk-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.c4
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 &&