downgrade project files to 10.4 so more clients can use them
downgrade some CG calls in test apps to not require 10.5 apis
remove leftover printf in SkOSWindow_Mac.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@42 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/xcode/hostapp/test.cpp b/xcode/hostapp/test.cpp
index 3b3e119..67f8332 100644
--- a/xcode/hostapp/test.cpp
+++ b/xcode/hostapp/test.cpp
@@ -29,9 +29,15 @@
gImage = SkCreateCGImageRef(bitmap);
}
- CGColorRef color = CGColorCreateGenericRGB(1, 1, 1, 1);
+ float components[] = { 1, 1, 1, 1 };
+
+ CGColorSpaceRef colorspace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
+ CGColorRef color = CGColorCreate(colorspace, components);
+
CGContextSetFillColorWithColor(cg, color);
CGColorRelease(color);
+ CGColorSpaceRelease(colorspace);
+
CGContextFillRect(cg, bounds);
CGRect r = CGRectMake(0, 0, 640, 480);