diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-01 14:18:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-05 08:21:46 +0200 |
commit | 4442d226438c1f558021b2df9fe6e540e72cbc7e (patch) | |
tree | d505be371a0b5a87b692c98cb6d871f7944a8ab2 /vcl/source/outdev | |
parent | 619d5fceada2df7c7bc915cea51779fd115d0fcd (diff) |
convert OutDevSupportType to scoped enum
Change-Id: I7a1e4448dfff0ea6909149533d228829d980796c
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/line.cxx | 4 | ||||
-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 | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/vcl/source/outdev/line.cxx b/vcl/source/outdev/line.cxx index a04dd802ee96..c12e1e6e98f3 100644 --- a/vcl/source/outdev/line.cxx +++ b/vcl/source/outdev/line.cxx @@ -115,7 +115,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt ) // #i101598# support AA and snap for lines, too if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) - && mpGraphics->supportsOperation(OutDevSupport_B2DDraw) + && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && ROP_OVERPAINT == GetRasterOp() && IsLineColor()) { @@ -159,7 +159,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt ) void OutputDevice::drawLine( basegfx::B2DPolyPolygon aLinePolyPolygon, const LineInfo& rInfo ) { const bool bTryAA((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) - && mpGraphics->supportsOperation(OutDevSupport_B2DDraw) + && mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && ROP_OVERPAINT == GetRasterOp() && IsLineColor()); basegfx::B2DPolyPolygon aFillPolyPolygon; diff --git a/vcl/source/outdev/polygon.cxx b/vcl/source/outdev/polygon.cxx index 612e93716bb1..8c7a58339b60 100644 --- a/vcl/source/outdev/polygon.cxx +++ b/vcl/source/outdev/polygon.cxx @@ -64,7 +64,7 @@ void OutputDevice::DrawPolyPolygon( const tools::PolyPolygon& rPolyPoly ) // use b2dpolygon drawing if possible if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && - mpGraphics->supportsOperation(OutDevSupport_B2DDraw) && + mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && ROP_OVERPAINT == GetRasterOp() && (IsLineColor() || IsFillColor())) { @@ -177,7 +177,7 @@ void OutputDevice::DrawPolygon( const tools::Polygon& rPoly ) // use b2dpolygon drawing if possible if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && - mpGraphics->supportsOperation(OutDevSupport_B2DDraw) && + mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && ROP_OVERPAINT == GetRasterOp() && (IsLineColor() || IsFillColor())) { @@ -280,7 +280,7 @@ void OutputDevice::ImplDrawPolyPolygonWithB2DPolyPolygon(const basegfx::B2DPolyP InitFillColor(); if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && - mpGraphics->supportsOperation(OutDevSupport_B2DDraw) && + mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && ROP_OVERPAINT == GetRasterOp() && (IsLineColor() || IsFillColor())) { diff --git a/vcl/source/outdev/polyline.cxx b/vcl/source/outdev/polyline.cxx index ff89d7b8d3ec..77971000dbfc 100644 --- a/vcl/source/outdev/polyline.cxx +++ b/vcl/source/outdev/polyline.cxx @@ -213,7 +213,7 @@ void OutputDevice::DrawPolyLine( const basegfx::B2DPolygon& rB2DPolygon, InitFillColor(); const bool bTryAA((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && - mpGraphics->supportsOperation(OutDevSupport_B2DDraw) && + mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && ROP_OVERPAINT == GetRasterOp() && IsLineColor()); @@ -313,7 +313,7 @@ bool OutputDevice::DrawPolyLineDirect( const basegfx::B2DPolygon& rB2DPolygon, const bool bTryAA( bBypassAACheck || ((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && - mpGraphics->supportsOperation(OutDevSupport_B2DDraw) && + mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && ROP_OVERPAINT == GetRasterOp() && IsLineColor())); diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx index 4376e39d0b4e..c8cfebd522c7 100644 --- a/vcl/source/outdev/transparent.cxx +++ b/vcl/source/outdev/transparent.cxx @@ -233,7 +233,7 @@ void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly, InitFillColor(); if((mnAntialiasing & AntialiasingFlags::EnableB2dDraw) && - mpGraphics->supportsOperation(OutDevSupport_B2DDraw) && + mpGraphics->supportsOperation(OutDevSupportType::B2DDraw) && (ROP_OVERPAINT == GetRasterOp()) ) { // b2dpolygon support not implemented yet on non-UNX platforms @@ -305,7 +305,7 @@ bool OutputDevice::DrawTransparentNatively ( const tools::PolyPolygon& rPolyPoly static const char* pDisableNative = getenv( "SAL_DISABLE_NATIVE_ALPHA"); if( !pDisableNative && - mpGraphics->supportsOperation( OutDevSupport_B2DDraw ) + mpGraphics->supportsOperation( OutDevSupportType::B2DDraw ) #if defined UNX && ! defined MACOSX && ! defined IOS && GetBitCount() > 8 #endif |