mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-04 12:20:44 +01:00
cocoa: support for R2_NOTXORPEN flag in gdi objects
git-svn-id: trunk@55543 -
This commit is contained in:
parent
7da30e1cf2
commit
f712709636
@ -765,7 +765,7 @@ begin
|
||||
AB := 1;
|
||||
AA := 0;
|
||||
end;
|
||||
R2_NOT:
|
||||
R2_NOT, R2_NOTXORPEN:
|
||||
begin
|
||||
AR := 1;
|
||||
AG := 1;
|
||||
@ -2650,10 +2650,12 @@ begin
|
||||
|
||||
GetRGBA(AROP2, AR, AG, AB, AA);
|
||||
|
||||
if AROP2 <> R2_NOT then
|
||||
CGContextSetBlendMode(ADC.CGContext, kCGBlendModeNormal)
|
||||
case AROP2 of
|
||||
R2_NOT, R2_NOTXORPEN:
|
||||
CGContextSetBlendMode(ADC.CGContext, kCGBlendModeDifference);
|
||||
else
|
||||
CGContextSetBlendMode(ADC.CGContext, kCGBlendModeDifference);
|
||||
CGContextSetBlendMode(ADC.CGContext, kCGBlendModeNormal)
|
||||
end;
|
||||
|
||||
CGContextSetRGBStrokeColor(ADC.CGContext, AR, AG, AB, AA);
|
||||
CGContextSetLineWidth(ADC.CGContext, FWidth);
|
||||
@ -3071,10 +3073,10 @@ begin
|
||||
|
||||
GetRGBA(AROP2, RGBA[0], RGBA[1], RGBA[2], RGBA[3]);
|
||||
|
||||
if AROP2 <> R2_NOT then
|
||||
CGContextSetBlendMode(ADC.CGContext, kCGBlendModeNormal)
|
||||
else
|
||||
CGContextSetBlendMode(ADC.CGContext, kCGBlendModeDifference);
|
||||
//if AROP2 <> R2_NOT then
|
||||
//CGContextSetBlendMode(ADC.CGContext, kCGBlendModeNormal)
|
||||
//else
|
||||
//CGContextSetBlendMode(ADC.CGContext, kCGBlendModeDifference);
|
||||
|
||||
if Assigned(FCGPattern) then
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user