summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-10 09:47:59 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-10 12:05:34 +0000
commit961b715d9d28e50608ab487624ded5231ca7bb78 (patch)
treef8696f1d8966df667d4532c1c71e9ee1397f4423 /vcl
parentaa544a002e534a313ad9dd365e80f052789d9963 (diff)
convert SAL_ROP to scoped enum
Change-Id: I2c49ec843c0f95e8246cdf9d3185c11e81a3bde3 Reviewed-on: https://gerrit.libreoffice.org/24824 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpgdi.cxx12
-rw-r--r--vcl/quartz/salgdicommon.cxx2
-rw-r--r--vcl/source/outdev/outdevstate.cxx12
-rw-r--r--vcl/unx/generic/gdi/gdiimpl.cxx12
-rw-r--r--vcl/win/gdi/gdiimpl.cxx2
5 files changed, 20 insertions, 20 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index b4dca52a49e0..7da5c50694bc 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -450,13 +450,13 @@ void SvpSalGraphics::SetROPLineColor( SalROPColor nROPColor )
{
switch( nROPColor )
{
- case SAL_ROP_0:
+ case SalROPColor::N0:
m_aLineColor = MAKE_SALCOLOR(0, 0, 0);
break;
- case SAL_ROP_1:
+ case SalROPColor::N1:
m_aLineColor = MAKE_SALCOLOR(0xff, 0xff, 0xff);
break;
- case SAL_ROP_INVERT:
+ case SalROPColor::Invert:
m_aLineColor = MAKE_SALCOLOR(0xff, 0xff, 0xff);
break;
}
@@ -466,13 +466,13 @@ void SvpSalGraphics::SetROPFillColor( SalROPColor nROPColor )
{
switch( nROPColor )
{
- case SAL_ROP_0:
+ case SalROPColor::N0:
m_aFillColor = MAKE_SALCOLOR(0, 0, 0);
break;
- case SAL_ROP_1:
+ case SalROPColor::N1:
m_aFillColor = MAKE_SALCOLOR(0xff, 0xff, 0xff);
break;
- case SAL_ROP_INVERT:
+ case SalROPColor::Invert:
m_aFillColor = MAKE_SALCOLOR(0xff, 0xff, 0xff);
break;
}
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index e493be1a75fe..3efe620c5f8d 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -498,7 +498,7 @@ static void getBoundRect( sal_uInt32 nPoints, const SalPoint *pPtAry,
static SalColor ImplGetROPSalColor( SalROPColor nROPColor )
{
SalColor nSalColor;
- if ( nROPColor == SAL_ROP_0 )
+ if ( nROPColor == SalROPColor::N0 )
{
nSalColor = MAKE_SALCOLOR( 0, 0, 0 );
}
diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx
index 99ec55b6803e..7a8a73c318d7 100644
--- a/vcl/source/outdev/outdevstate.cxx
+++ b/vcl/source/outdev/outdevstate.cxx
@@ -577,11 +577,11 @@ void OutputDevice::InitLineColor()
if( mbLineColor )
{
if( ROP_0 == meRasterOp )
- mpGraphics->SetROPLineColor( SAL_ROP_0 );
+ mpGraphics->SetROPLineColor( SalROPColor::N0 );
else if( ROP_1 == meRasterOp )
- mpGraphics->SetROPLineColor( SAL_ROP_1 );
+ mpGraphics->SetROPLineColor( SalROPColor::N1 );
else if( ROP_INVERT == meRasterOp )
- mpGraphics->SetROPLineColor( SAL_ROP_INVERT );
+ mpGraphics->SetROPLineColor( SalROPColor::Invert );
else
mpGraphics->SetLineColor( ImplColorToSal( maLineColor ) );
}
@@ -599,11 +599,11 @@ void OutputDevice::InitFillColor()
if( mbFillColor )
{
if( ROP_0 == meRasterOp )
- mpGraphics->SetROPFillColor( SAL_ROP_0 );
+ mpGraphics->SetROPFillColor( SalROPColor::N0 );
else if( ROP_1 == meRasterOp )
- mpGraphics->SetROPFillColor( SAL_ROP_1 );
+ mpGraphics->SetROPFillColor( SalROPColor::N1 );
else if( ROP_INVERT == meRasterOp )
- mpGraphics->SetROPFillColor( SAL_ROP_INVERT );
+ mpGraphics->SetROPFillColor( SalROPColor::Invert );
else
mpGraphics->SetFillColor( ImplColorToSal( maFillColor ) );
}
diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx
index 02f93255e928..1eda18a390ac 100644
--- a/vcl/unx/generic/gdi/gdiimpl.cxx
+++ b/vcl/unx/generic/gdi/gdiimpl.cxx
@@ -1158,13 +1158,13 @@ void X11SalGraphicsImpl::SetROPLineColor( SalROPColor nROPColor )
{
switch( nROPColor )
{
- case SAL_ROP_0 : // 0
+ case SalROPColor::N0 : // 0
mnPenPixel = (Pixel)0;
break;
- case SAL_ROP_1 : // 1
+ case SalROPColor::N1 : // 1
mnPenPixel = (Pixel)(1 << mrParent.GetVisual().GetDepth()) - 1;
break;
- case SAL_ROP_INVERT : // 2
+ case SalROPColor::Invert : // 2
mnPenPixel = (Pixel)(1 << mrParent.GetVisual().GetDepth()) - 1;
break;
}
@@ -1176,13 +1176,13 @@ void X11SalGraphicsImpl::SetROPFillColor( SalROPColor nROPColor )
{
switch( nROPColor )
{
- case SAL_ROP_0 : // 0
+ case SalROPColor::N0 : // 0
mnBrushPixel = (Pixel)0;
break;
- case SAL_ROP_1 : // 1
+ case SalROPColor::N1 : // 1
mnBrushPixel = (Pixel)(1 << mrParent.GetVisual().GetDepth()) - 1;
break;
- case SAL_ROP_INVERT : // 2
+ case SalROPColor::Invert : // 2
mnBrushPixel = (Pixel)(1 << mrParent.GetVisual().GetDepth()) - 1;
break;
}
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx
index bd03594292a2..6eebc7a9bf32 100644
--- a/vcl/win/gdi/gdiimpl.cxx
+++ b/vcl/win/gdi/gdiimpl.cxx
@@ -225,7 +225,7 @@ static BYTE aOrdDither16Bit[8][8] =
SalColor ImplGetROPSalColor( SalROPColor nROPColor )
{
SalColor nSalColor;
- if ( nROPColor == SAL_ROP_0 )
+ if ( nROPColor == SalROPColor::N0 )
nSalColor = MAKE_SALCOLOR( 0, 0, 0 );
else
nSalColor = MAKE_SALCOLOR( 255, 255, 255 );