From 3cbdf64ad5240e6d9a73d4f7e005f7110d5e4002 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 19 May 2015 10:43:01 +0200 Subject: convert DRAWMODE constants to scoped enum Change-Id: I36cbe8057d09226f8b302963bdd94dc5600b686f --- canvas/source/vcl/canvascustomsprite.cxx | 4 ++-- canvas/source/vcl/canvashelper.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'canvas') diff --git a/canvas/source/vcl/canvascustomsprite.cxx b/canvas/source/vcl/canvascustomsprite.cxx index 1b04c1dcbdf1..cb8833696bc7 100644 --- a/canvas/source/vcl/canvascustomsprite.cxx +++ b/canvas/source/vcl/canvascustomsprite.cxx @@ -89,8 +89,8 @@ namespace vclcanvas // set mask vdev drawmode, such that everything is painted // black. That leaves us with a binary image, white for // background, black for painted content - pBackBufferMask->getOutDev().SetDrawMode( DRAWMODE_BLACKLINE | DRAWMODE_BLACKFILL | DRAWMODE_BLACKTEXT | - DRAWMODE_BLACKGRADIENT | DRAWMODE_BLACKBITMAP ); + pBackBufferMask->getOutDev().SetDrawMode( DrawModeFlags::BlackLine | DrawModeFlags::BlackFill | DrawModeFlags::BlackText | + DrawModeFlags::BlackGradient | DrawModeFlags::BlackBitmap ); // setup canvas helper diff --git a/canvas/source/vcl/canvashelper.cxx b/canvas/source/vcl/canvashelper.cxx index 867405698716..84ba5465b3e2 100644 --- a/canvas/source/vcl/canvashelper.cxx +++ b/canvas/source/vcl/canvashelper.cxx @@ -178,7 +178,7 @@ namespace vclcanvas { OutputDevice& rOutDev2( mp2ndOutDev->getOutDev() ); - rOutDev2.SetDrawMode( DRAWMODE_DEFAULT ); + rOutDev2.SetDrawMode( DrawModeFlags::Default ); rOutDev2.EnableMapMode( false ); rOutDev2.SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW ); rOutDev2.SetLineColor( COL_WHITE ); @@ -186,8 +186,8 @@ namespace vclcanvas rOutDev2.SetClipRegion(); rOutDev2.DrawRect( Rectangle( Point(), rOutDev2.GetOutputSizePixel()) ); - rOutDev2.SetDrawMode( DRAWMODE_BLACKLINE | DRAWMODE_BLACKFILL | DRAWMODE_BLACKTEXT | - DRAWMODE_BLACKGRADIENT | DRAWMODE_BLACKBITMAP ); + rOutDev2.SetDrawMode( DrawModeFlags::BlackLine | DrawModeFlags::BlackFill | DrawModeFlags::BlackText | + DrawModeFlags::BlackGradient | DrawModeFlags::BlackBitmap ); } } } -- cgit