carbon: improve DC antialiasing setting. if set to false, images are also rendered not-aliased

git-svn-id: trunk@24302 -
This commit is contained in:
dmitry 2010-03-30 18:17:30 +00:00
parent d841943e9f
commit 02cbae0466

View File

@ -706,6 +706,10 @@ end;
------------------------------------------------------------------------------}
procedure TCarbonDeviceContext.SetAntialiasing(AValue: Boolean);
begin
if not AValue then
CGContextSetInterpolationQuality(CGContext, kCGInterpolationNone)
else
CGContextSetInterpolationQuality(CGContext, kCGInterpolationDefault);
CGContextSetShouldAntialias(CGContext, CBool(AValue));
end;