Text archives Help
- From: boulos@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r2000 - trunk/Image
- Date: Wed, 23 Jan 2008 18:50:49 -0700 (MST)
Author: boulos
Date: Wed Jan 23 18:50:48 2008
New Revision: 2000
Modified:
trunk/Image/CoreGraphicsFile.cc
Log:
CoreGraphicsFile.cc
Fixing build breakage from r1998. CGFloat is new to Leopard and
stupidly wraps float. I understand doing this for pointers, but
value types?
Modified: trunk/Image/CoreGraphicsFile.cc
==============================================================================
--- trunk/Image/CoreGraphicsFile.cc (original)
+++ trunk/Image/CoreGraphicsFile.cc Wed Jan 23 18:50:48 2008
@@ -64,12 +64,12 @@
// Load the sRGB profile from file since 10.4 does not support a direct
sRGB profile
// defaults to a generic RGB space if the file does not exist
CGColorSpaceRef alternate =
CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
- CFURLRef icc_profile_path =
- CFURLCreateWithFileSystemPath( NULL,
+ CFURLRef icc_profile_path =
+ CFURLCreateWithFileSystemPath( NULL,
CFSTR("/System/Library/ColorSync/Profiles/sRGB Profile.icc"),
kCFURLPOSIXPathStyle, false);
CGDataProviderRef icc_profile =
CGDataProviderCreateWithURL(icc_profile_path);
- const CGFloat range[] = {0,1,0,1,0,1}; // min/max of the three components
+ const float range[] = {0,1.f,0,1.f,0,1.f}; // min/max of the three
components
color_space = CGColorSpaceCreateICCBased( 3, range, icc_profile,
alternate );
if(color_space == NULL) {
- [Manta] r2000 - trunk/Image, boulos, 01/23/2008
Archive powered by MHonArc 2.6.16.