Kaydet (Commit) 994da4b9 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Simplify

Change-Id: I9857afc5dd6652fc28be00bea81ad213712b3dc5
üst ec221b73
......@@ -207,11 +207,7 @@ bool QuartzSalBitmap::CreateContext()
AllocateUserData();
// default to RGBA color space
#ifdef IOS
CGColorSpaceRef aCGColorSpace = CGColorSpaceCreateDeviceRGB();
#else
CGColorSpaceRef aCGColorSpace = GetSalData()->mxRGBSpace;
#endif
CGBitmapInfo aCGBmpInfo = kCGImageAlphaNoneSkipFirst;
// convert data into something accepted by CGBitmapContextCreate()
......@@ -226,11 +222,7 @@ bool QuartzSalBitmap::CreateContext()
{
// no conversion needed for grayscale
maContextBuffer = maUserBuffer;
#ifdef IOS
aCGColorSpace = CGColorSpaceCreateDeviceGray();
#else
aCGColorSpace = GetSalData()->mxGraySpace;
#endif
aCGBmpInfo = kCGImageAlphaNone;
bitsPerComponent = mnBits;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment