summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-19 12:16:31 +0200
committerNoel Grandin <noel@peralex.com>2015-05-20 09:52:09 +0200
commit456c379ffd8683cd8c22969268900787cf1ac28e (patch)
treefe340c60faee4799f9ef7002c16ac822c8596dff /sw
parent3cbdf64ad5240e6d9a73d4f7e005f7110d5e4002 (diff)
convert ANTIALIASING constants to scoped enum
Change-Id: I175b8ea4e8bc01c3cdd3dd90506eba01b35e0085
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/notxtfrm.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index 1485579ceace..d94c17966e12 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -870,10 +870,10 @@ void SwNoTxtFrm::PaintPicture( vcl::RenderContext* pOut, const SwRect &rGrfArea
if( pGrfNd )
{
// Fix for bug fdo#33781
- const sal_uInt16 nFormerAntialiasingAtOutput( pOut->GetAntialiasing() );
+ const AntialiasingFlags nFormerAntialiasingAtOutput( pOut->GetAntialiasing() );
if (pShell->Imp()->GetDrawView()->IsAntiAliasing())
{
- pOut->SetAntialiasing( nFormerAntialiasingAtOutput | ANTIALIASING_ENABLE_B2DDRAW );
+ pOut->SetAntialiasing( nFormerAntialiasingAtOutput | AntialiasingFlags::EnableB2dDraw );
}
bool bContinue = true;
@@ -978,15 +978,15 @@ void SwNoTxtFrm::PaintPicture( vcl::RenderContext* pOut, const SwRect &rGrfArea
else // bIsChart || pOLENd
{
// Fix for bug fdo#33781
- const sal_uInt16 nFormerAntialiasingAtOutput( pOut->GetAntialiasing() );
+ const AntialiasingFlags nFormerAntialiasingAtOutput( pOut->GetAntialiasing() );
if (pShell->Imp()->GetDrawView()->IsAntiAliasing())
{
- sal_uInt16 nNewAntialiasingAtOutput = nFormerAntialiasingAtOutput | ANTIALIASING_ENABLE_B2DDRAW;
+ AntialiasingFlags nNewAntialiasingAtOutput = nFormerAntialiasingAtOutput | AntialiasingFlags::EnableB2dDraw;
// #i99665#
// Adjust AntiAliasing mode at output device for chart OLE
if ( pOLENd->IsChart() )
- nNewAntialiasingAtOutput |= ANTIALIASING_PIXELSNAPHAIRLINE;
+ nNewAntialiasingAtOutput |= AntialiasingFlags::PixelSnapHairline;
pOut->SetAntialiasing( nNewAntialiasingAtOutput );
}