diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-05 14:09:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-06 09:01:30 +0200 |
commit | b13fbd19b7282a1210a2e14bb5ede9ecdf944c1c (patch) | |
tree | 3db528acc23250ddcc3dbdc9b1e35a817d8de9ee /cui/source | |
parent | ba121a3269d17f87c6d09b9e46aaaf921af40ef6 (diff) |
convert BMP_SCALE constant to scoped enum
Change-Id: Ibc9f88d2588c028cd71aa86c26d970a73025ef22
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/cuigrfflt.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/align.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/border.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/dialogs/cuigrfflt.cxx b/cui/source/dialogs/cuigrfflt.cxx index 0623a45ac372..ea1d83c9c0a7 100644 --- a/cui/source/dialogs/cuigrfflt.cxx +++ b/cui/source/dialogs/cuigrfflt.cxx @@ -122,7 +122,7 @@ void GraphicPreviewWindow::ScaleImageToFit() { BitmapEx aBmpEx( mpOrigGraphic->GetBitmapEx() ); - if( aBmpEx.Scale( aGrfSize, BMP_SCALE_DEFAULT ) ) + if( aBmpEx.Scale( aGrfSize, BmpScaleFlag::Default ) ) maScaledOrig = aBmpEx; } } diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx index 0f19eefbd00d..55dd19c00f7a 100644 --- a/cui/source/tabpages/align.cxx +++ b/cui/source/tabpages/align.cxx @@ -360,7 +360,7 @@ void AlignmentTabPage::InitVsRefEgde() { OUString rImageName = aImageList.GetImageName(i); BitmapEx b = aImageList.GetImage(rImageName).GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BMP_SCALE_FAST); + b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BmpScaleFlag::Fast); aImageList.ReplaceImage(rImageName, Image(b)); } } diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx index b304afa3955a..01881fe816d4 100644 --- a/cui/source/tabpages/border.cxx +++ b/cui/source/tabpages/border.cxx @@ -137,7 +137,7 @@ SvxBorderTabPage::SvxBorderTabPage(vcl::Window* pParent, const SfxItemSet& rCore { OUString rImageName = aBorderImgLst.GetImageName(i); BitmapEx b = aBorderImgLst.GetImage(rImageName).GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BMP_SCALE_FAST); + b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BmpScaleFlag::Fast); aBorderImgLst.ReplaceImage(rImageName, Image(b)); } @@ -145,7 +145,7 @@ SvxBorderTabPage::SvxBorderTabPage(vcl::Window* pParent, const SfxItemSet& rCore { OUString rImageName = aShadowImgLst.GetImageName(i); BitmapEx b = aShadowImgLst.GetImage(rImageName).GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BMP_SCALE_FAST); + b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BmpScaleFlag::Fast); aShadowImgLst.ReplaceImage(rImageName, Image(b)); } } |