summaryrefslogtreecommitdiff
path: root/vcl/source/filter/GraphicNativeTransform.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/filter/GraphicNativeTransform.cxx')
-rw-r--r--vcl/source/filter/GraphicNativeTransform.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/vcl/source/filter/GraphicNativeTransform.cxx b/vcl/source/filter/GraphicNativeTransform.cxx
index b2d90f43e8d7..d6c77c71caba 100644
--- a/vcl/source/filter/GraphicNativeTransform.cxx
+++ b/vcl/source/filter/GraphicNativeTransform.cxx
@@ -35,16 +35,17 @@ GraphicNativeTransform::GraphicNativeTransform(Graphic& rGraphic)
GraphicNativeTransform::~GraphicNativeTransform() {}
-void GraphicNativeTransform::rotate(sal_uInt16 aInputRotation)
+void GraphicNativeTransform::rotate(Degree10 aInputRotation)
{
// Rotation can be between 0 and 3600
- sal_uInt16 aRotation = aInputRotation % 3600;
+ Degree10 aRotation = aInputRotation % Degree10(3600);
- if (aRotation == 0)
+ if (aRotation == Degree10(0))
{
return; // No rotation is needed
}
- else if (aRotation != 900 && aRotation != 1800 && aRotation != 2700)
+ else if (aRotation != Degree10(900) && aRotation != Degree10(1800)
+ && aRotation != Degree10(2700))
{
return;
}
@@ -68,7 +69,7 @@ void GraphicNativeTransform::rotate(sal_uInt16 aInputRotation)
}
}
-bool GraphicNativeTransform::rotateBitmapOnly(sal_uInt16 aRotation)
+bool GraphicNativeTransform::rotateBitmapOnly(Degree10 aRotation)
{
if (mrGraphic.IsAnimated())
{
@@ -82,7 +83,7 @@ bool GraphicNativeTransform::rotateBitmapOnly(sal_uInt16 aRotation)
return true;
}
-bool GraphicNativeTransform::rotateGeneric(sal_uInt16 aRotation, const OUString& aType)
+bool GraphicNativeTransform::rotateGeneric(Degree10 aRotation, const OUString& aType)
{
// Can't rotate animations yet
if (mrGraphic.IsAnimated())
@@ -117,7 +118,7 @@ bool GraphicNativeTransform::rotateGeneric(sal_uInt16 aRotation, const OUString&
return true;
}
-void GraphicNativeTransform::rotateJPEG(sal_uInt16 aRotation)
+void GraphicNativeTransform::rotateJPEG(Degree10 aRotation)
{
BitmapEx aBitmap = mrGraphic.GetBitmapEx();