summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2012-07-26 20:58:31 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-07-26 21:01:26 +0200
commit47ab19faef29f0d6ec163c417c1f38ed06078e36 (patch)
tree1ff441acfdc4c27028db6c41f06c8859256d6b65 /vcl/source/gdi
parentd37ea5bc4b3370f9181de2f74a6c27c02c77bb5d (diff)
Only make transparent mask when the angle is not 0, 90, 180 or 270.
Change-Id: I46798192d019967f74e4d118b1dd322072cd3997
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/bitmapex.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx
index d4fea95a6f10..e7df4762bfd0 100644
--- a/vcl/source/gdi/bitmapex.cxx
+++ b/vcl/source/gdi/bitmapex.cxx
@@ -393,11 +393,13 @@ sal_Bool BitmapEx::ScaleCropRotate(
{
bool bRet = false;
- const bool bTransparentRotate = ( Color( COL_TRANSPARENT ) == rFillColor );
-
if( !!aBitmap )
{
- if( bTransparentRotate )
+ const bool bTransparentRotate = ( Color( COL_TRANSPARENT ) == rFillColor );
+
+ bool bRightAngleRotation = (nAngle10 == 0 || nAngle10 == 900 || nAngle10 == 1800 || nAngle10 == 2700);
+
+ if( !bRightAngleRotation && bTransparentRotate )
{
if( eTransparent == TRANSPARENT_COLOR )
{