]> code.delx.au - gnu-emacs/blobdiff - src/nsimage.m
Merge from trunk.
[gnu-emacs] / src / nsimage.m
index c38cefdc5d54a24556bd4bef1c048e90826d9ea8..2cb0c3bff76fa0213cd301c4d5141e4d8395d60f 100644 (file)
@@ -189,7 +189,11 @@ static EmacsImage *ImageList = nil;
   image = [[EmacsImage alloc] initByReferencingFile:
                      [NSString stringWithUTF8String: SDATA (found)]];
 
+#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
+  imgRep = [NSBitmapImageRep imageRepWithData:[image TIFFRepresentation]];
+#else
   imgRep = [image bestRepresentationForDevice: nil];
+#endif
   if (imgRep == nil)
     {
       [image release];