summaryrefslogtreecommitdiff
path: root/vcl/quartz/salgdicommon.cxx
diff options
context:
space:
mode:
authortsahi glik <tsahi.glik@cloudon.com>2014-01-10 10:26:07 -0800
committertsahi glik <tsahi.glik@cloudon.com>2014-01-10 10:27:59 -0800
commitbbff44e5aac6cb98582ecbab8bb478c54eaefcbf (patch)
tree7e425c1e8c8a7ecdc09bcd3bf61c1e3ad9df8971 /vcl/quartz/salgdicommon.cxx
parent28412c1d477b43397f684aea9af7557ddcbce3a5 (diff)
Normalized aqua graphics line and fill colors to RGBA
Diffstat (limited to 'vcl/quartz/salgdicommon.cxx')
-rw-r--r--vcl/quartz/salgdicommon.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index cc453342178e..c2b1c8e6519f 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -1452,7 +1452,8 @@ void AquaSalGraphics::SetLineColor()
maLineColor.SetAlpha( 0.0 ); // transparent
if( CheckContext() )
{
- CGContextSetStrokeColor( mrContext, maLineColor.AsArray() );
+ CGContextSetRGBStrokeColor( mrContext, maLineColor.GetRed(), maLineColor.GetGreen(),
+ maLineColor.GetBlue(), maLineColor.GetAlpha() );
}
}
@@ -1461,7 +1462,8 @@ void AquaSalGraphics::SetLineColor( SalColor nSalColor )
maLineColor = RGBAColor( nSalColor );
if( CheckContext() )
{
- CGContextSetStrokeColor( mrContext, maLineColor.AsArray() );
+ CGContextSetRGBStrokeColor( mrContext, maLineColor.GetRed(), maLineColor.GetGreen(),
+ maLineColor.GetBlue(), maLineColor.GetAlpha() );
}
}
@@ -1470,7 +1472,8 @@ void AquaSalGraphics::SetFillColor()
maFillColor.SetAlpha( 0.0 ); // transparent
if( CheckContext() )
{
- CGContextSetFillColor( mrContext, maFillColor.AsArray() );
+ CGContextSetRGBFillColor( mrContext, maFillColor.GetRed(), maFillColor.GetGreen(),
+ maFillColor.GetBlue(), maFillColor.GetAlpha() );
}
}
@@ -1479,7 +1482,8 @@ void AquaSalGraphics::SetFillColor( SalColor nSalColor )
maFillColor = RGBAColor( nSalColor );
if( CheckContext() )
{
- CGContextSetFillColor( mrContext, maFillColor.AsArray() );
+ CGContextSetRGBFillColor( mrContext, maFillColor.GetRed(), maFillColor.GetGreen(),
+ maFillColor.GetBlue(), maFillColor.GetAlpha() );
}
}