carbon: correction for drawing pmXor and pmNotXor modes

git-svn-id: trunk@55553 -
This commit is contained in:
dmitry 2017-07-21 03:32:33 +00:00
parent 1c2074a32a
commit 21265ba8ff

View File

@ -1728,14 +1728,14 @@ begin
AB := 1;
AA := 0;
end;
R2_NOT, R2_NOTXORPEN:
R2_NOT:
begin
AR := 1;
AG := 1;
AB := 1;
AA := Byte(FA);
end;
R2_NOTCOPYPEN:
R2_NOTXORPEN, R2_NOTCOPYPEN:
begin
AR := (255 - FR) / 255;
AG := (255 - FG) / 255;
@ -2047,7 +2047,8 @@ begin
case AROP2 of
R2_NOT: blendmode := kCGBlendModeDifference;
R2_NOTXORPEN: blendmode := kCGBlendModeDifference;
R2_NOTXORPEN: blendmode := kCGBlendModeExclusion;
R2_XORPEN: blendmode := kCGBlendModeDifference;
else
blendmode := kCGBlendModeNormal;
end;