diff options
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/bitmap.cxx | 6 | ||||
-rw-r--r-- | vcl/source/outdev/gradient.cxx | 6 | ||||
-rw-r--r-- | vcl/source/outdev/line.cxx | 4 | ||||
-rw-r--r-- | vcl/source/outdev/mask.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/outdev.cxx | 8 | ||||
-rw-r--r-- | vcl/source/outdev/outdevstate.cxx | 16 | ||||
-rw-r--r-- | vcl/source/outdev/polygon.cxx | 6 | ||||
-rw-r--r-- | vcl/source/outdev/polyline.cxx | 4 | ||||
-rw-r--r-- | vcl/source/outdev/transparent.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/wallpaper.cxx | 6 |
10 files changed, 30 insertions, 30 deletions
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index 31b25a2d199a..387bf0d97f98 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -69,7 +69,7 @@ void OutputDevice::DrawBitmap( const Point& rDestPt, const Size& rDestSize, { return; } - if ( ROP_INVERT == meRasterOp ) + if ( RasterOp::Invert == meRasterOp ) { DrawRect( Rectangle( rDestPt, rDestSize ) ); return; @@ -295,7 +295,7 @@ void OutputDevice::DrawBitmapEx( const Point& rDestPt, const Size& rDestSize, if ( mnDrawMode & DrawModeFlags::NoBitmap ) return; - if ( ROP_INVERT == meRasterOp ) + if ( RasterOp::Invert == meRasterOp ) { DrawRect( Rectangle( rDestPt, rDestSize ) ); return; @@ -1216,7 +1216,7 @@ void OutputDevice::DrawTransformedBitmapEx( // we have rotation,shear or mirror, check if some crazy mode needs the // created transformed bitmap - const bool bInvert(ROP_INVERT == meRasterOp); + const bool bInvert(RasterOp::Invert == meRasterOp); const bool bBitmapChangedColor(mnDrawMode & (DrawModeFlags::BlackBitmap | DrawModeFlags::WhiteBitmap | DrawModeFlags::GrayBitmap | DrawModeFlags::GhostedBitmap)); const bool bMetafile(mpMetaFile); bool bDone(false); diff --git a/vcl/source/outdev/gradient.cxx b/vcl/source/outdev/gradient.cxx index fdf6d33ba53c..696cc6ac90ac 100644 --- a/vcl/source/outdev/gradient.cxx +++ b/vcl/source/outdev/gradient.cxx @@ -160,12 +160,12 @@ void OutputDevice::ClipAndDrawGradientMetafile ( const Gradient &rGradient, cons EnableOutput( false ); Push( PushFlags::RASTEROP ); - SetRasterOp( ROP_XOR ); + SetRasterOp( RasterOp::Xor ); DrawGradient( aBoundRect, rGradient ); SetFillColor( COL_BLACK ); - SetRasterOp( ROP_0 ); + SetRasterOp( RasterOp::N0 ); DrawPolyPolygon( rPolyPoly ); - SetRasterOp( ROP_XOR ); + SetRasterOp( RasterOp::Xor ); DrawGradient( aBoundRect, rGradient ); Pop(); EnableOutput( bOldOutput ); diff --git a/vcl/source/outdev/line.cxx b/vcl/source/outdev/line.cxx index c12e1e6e98f3..990efb555e34 100644 --- a/vcl/source/outdev/line.cxx +++ b/vcl/source/outdev/line.cxx @@ -116,7 +116,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt ) // #i101598# support AA and snap for lines, too if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) - && ROP_OVERPAINT == GetRasterOp() + && RasterOp::OverPaint == GetRasterOp() && IsLineColor()) { // at least transform with double precision to device coordinates; this will @@ -160,7 +160,7 @@ void OutputDevice::drawLine( basegfx::B2DPolyPolygon aLinePolyPolygon, const Lin { const bool bTryAA((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) - && ROP_OVERPAINT == GetRasterOp() + && RasterOp::OverPaint == GetRasterOp() && IsLineColor()); basegfx::B2DPolyPolygon aFillPolyPolygon; const bool bDashUsed(LINE_DASH == rInfo.GetStyle()); diff --git a/vcl/source/outdev/mask.cxx b/vcl/source/outdev/mask.cxx index eaa9ac060fa5..73af2869fff0 100644 --- a/vcl/source/outdev/mask.cxx +++ b/vcl/source/outdev/mask.cxx @@ -54,7 +54,7 @@ void OutputDevice::DrawMask( const Point& rDestPt, const Size& rDestSize, if( ImplIsRecordLayout() ) return; - if( ROP_INVERT == meRasterOp ) + if( RasterOp::Invert == meRasterOp ) { DrawRect( Rectangle( rDestPt, rDestSize ) ); return; diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx index 2ea9988406c3..8555f5cd12d4 100644 --- a/vcl/source/outdev/outdev.cxx +++ b/vcl/source/outdev/outdev.cxx @@ -94,7 +94,7 @@ OutputDevice::OutputDevice() : maTextColor = Color( COL_BLACK ); maOverlineColor = Color( COL_TRANSPARENT ); meTextAlign = maFont.GetAlignment(); - meRasterOp = ROP_OVERPAINT; + meRasterOp = RasterOp::OverPaint; mnAntialiasing = AntialiasingFlags::NONE; meTextLanguage = 0; // TODO: get default from configuration? mbLineColor = true; @@ -418,7 +418,7 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize, if( ImplIsRecordLayout() ) return; - if ( ROP_INVERT == meRasterOp ) + if ( RasterOp::Invert == meRasterOp ) { DrawRect( Rectangle( rDestPt, rDestSize ) ); return; @@ -475,7 +475,7 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize, if ( ImplIsRecordLayout() ) return; - if ( ROP_INVERT == meRasterOp ) + if ( RasterOp::Invert == meRasterOp ) { DrawRect( Rectangle( rDestPt, rDestSize ) ); return; @@ -547,7 +547,7 @@ void OutputDevice::CopyArea( const Point& rDestPt, return; RasterOp eOldRop = GetRasterOp(); - SetRasterOp( ROP_OVERPAINT ); + SetRasterOp( RasterOp::OverPaint ); if ( !IsDeviceOutputNecessary() ) return; diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx index 698c3a4c9581..cf2ef0d59159 100644 --- a/vcl/source/outdev/outdevstate.cxx +++ b/vcl/source/outdev/outdevstate.cxx @@ -39,7 +39,7 @@ OutDevState::OutDevState() , mpOverlineColor(nullptr) , mpRefPoint(nullptr) , meTextAlign(ALIGN_TOP) - , meRasterOp(ROP_OVERPAINT) + , meRasterOp(RasterOp::OverPaint) , mnTextLayoutMode(ComplexTextLayoutFlags::Default) , meTextLanguage(0) , mnFlags(PushFlags::NONE) @@ -297,7 +297,7 @@ void OutputDevice::SetRasterOp( RasterOp eRasterOp ) mbInitLineColor = mbInitFillColor = true; if( mpGraphics || AcquireGraphics() ) - mpGraphics->SetXORMode( (ROP_INVERT == meRasterOp) || (ROP_XOR == meRasterOp) ); + mpGraphics->SetXORMode( (RasterOp::Invert == meRasterOp) || (RasterOp::Xor == meRasterOp) ); } if( mpAlphaVDev ) @@ -576,11 +576,11 @@ void OutputDevice::InitLineColor() if( mbLineColor ) { - if( ROP_0 == meRasterOp ) + if( RasterOp::N0 == meRasterOp ) mpGraphics->SetROPLineColor( SalROPColor::N0 ); - else if( ROP_1 == meRasterOp ) + else if( RasterOp::N1 == meRasterOp ) mpGraphics->SetROPLineColor( SalROPColor::N1 ); - else if( ROP_INVERT == meRasterOp ) + else if( RasterOp::Invert == meRasterOp ) mpGraphics->SetROPLineColor( SalROPColor::Invert ); else mpGraphics->SetLineColor( ImplColorToSal( maLineColor ) ); @@ -598,11 +598,11 @@ void OutputDevice::InitFillColor() if( mbFillColor ) { - if( ROP_0 == meRasterOp ) + if( RasterOp::N0 == meRasterOp ) mpGraphics->SetROPFillColor( SalROPColor::N0 ); - else if( ROP_1 == meRasterOp ) + else if( RasterOp::N1 == meRasterOp ) mpGraphics->SetROPFillColor( SalROPColor::N1 ); - else if( ROP_INVERT == meRasterOp ) + else if( RasterOp::Invert == meRasterOp ) mpGraphics->SetROPFillColor( SalROPColor::Invert ); else mpGraphics->SetFillColor( ImplColorToSal( maFillColor ) ); diff --git a/vcl/source/outdev/polygon.cxx b/vcl/source/outdev/polygon.cxx index 8c7a58339b60..76d9ec6e6963 100644 --- a/vcl/source/outdev/polygon.cxx +++ b/vcl/source/outdev/polygon.cxx @@ -65,7 +65,7 @@ void OutputDevice::DrawPolyPolygon( const tools::PolyPolygon& rPolyPoly ) // use b2dpolygon drawing if possible if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && - ROP_OVERPAINT == GetRasterOp() && + RasterOp::OverPaint == GetRasterOp() && (IsLineColor() || IsFillColor())) { const basegfx::B2DHomMatrix aTransform = ImplGetDeviceTransformation(); @@ -178,7 +178,7 @@ void OutputDevice::DrawPolygon( const tools::Polygon& rPoly ) // use b2dpolygon drawing if possible if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && - ROP_OVERPAINT == GetRasterOp() && + RasterOp::OverPaint == GetRasterOp() && (IsLineColor() || IsFillColor())) { const basegfx::B2DHomMatrix aTransform = ImplGetDeviceTransformation(); @@ -281,7 +281,7 @@ void OutputDevice::ImplDrawPolyPolygonWithB2DPolyPolygon(const basegfx::B2DPolyP if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && - ROP_OVERPAINT == GetRasterOp() && + RasterOp::OverPaint == GetRasterOp() && (IsLineColor() || IsFillColor())) { const basegfx::B2DHomMatrix aTransform(ImplGetDeviceTransformation()); diff --git a/vcl/source/outdev/polyline.cxx b/vcl/source/outdev/polyline.cxx index 77971000dbfc..289d7926acff 100644 --- a/vcl/source/outdev/polyline.cxx +++ b/vcl/source/outdev/polyline.cxx @@ -214,7 +214,7 @@ void OutputDevice::DrawPolyLine( const basegfx::B2DPolygon& rB2DPolygon, const bool bTryAA((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && - ROP_OVERPAINT == GetRasterOp() && + RasterOp::OverPaint == GetRasterOp() && IsLineColor()); // when AA it is necessary to also paint the filled polygon's outline @@ -314,7 +314,7 @@ bool OutputDevice::DrawPolyLineDirect( const basegfx::B2DPolygon& rB2DPolygon, const bool bTryAA( bBypassAACheck || ((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && - ROP_OVERPAINT == GetRasterOp() && + RasterOp::OverPaint == GetRasterOp() && IsLineColor())); if(bTryAA) diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx index c8cfebd522c7..ace38d6f944d 100644 --- a/vcl/source/outdev/transparent.cxx +++ b/vcl/source/outdev/transparent.cxx @@ -234,7 +234,7 @@ void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly, if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && - (ROP_OVERPAINT == GetRasterOp()) ) + (RasterOp::OverPaint == GetRasterOp()) ) { // b2dpolygon support not implemented yet on non-UNX platforms const basegfx::B2DHomMatrix aTransform = ImplGetDeviceTransformation(); diff --git a/vcl/source/outdev/wallpaper.cxx b/vcl/source/outdev/wallpaper.cxx index 057089bbc20c..e4d89716f28d 100644 --- a/vcl/source/outdev/wallpaper.cxx +++ b/vcl/source/outdev/wallpaper.cxx @@ -94,10 +94,10 @@ void OutputDevice::Erase() if ( mbBackground ) { RasterOp eRasterOp = GetRasterOp(); - if ( eRasterOp != ROP_OVERPAINT ) - SetRasterOp( ROP_OVERPAINT ); + if ( eRasterOp != RasterOp::OverPaint ) + SetRasterOp( RasterOp::OverPaint ); DrawWallpaper( 0, 0, mnOutWidth, mnOutHeight, maBackground ); - if ( eRasterOp != ROP_OVERPAINT ) + if ( eRasterOp != RasterOp::OverPaint ) SetRasterOp( eRasterOp ); } |