mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-02 19:58:16 +02:00
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:
parent
d841943e9f
commit
02cbae0466
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user