summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 01:20:23 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 01:20:23 +0000
commit90a9ed9425e4c749eccf0b5ab965f0a86e9c5b75 (patch)
tree5034aefc6b7ac5b790e83cba42d4deaa47f7ed4a
parent1a9daf2497dad7157274ad8980f5e0f7ec4f43fe (diff)
INTEGRATION: CWS warnings01 (1.7.4); FILE MERGED
2006/02/22 22:27:25 thb 1.7.4.1: #i55991# Removed virtual derivations, where unnecessary; removed unused params; renamed vars which shadowed previous ones; put agg headers into sys header brackets
-rw-r--r--canvas/source/vcl/canvashelper_texturefill.cxx21
1 files changed, 12 insertions, 9 deletions
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx
index 95451d38223f..4c017e61c0ee 100644
--- a/canvas/source/vcl/canvashelper_texturefill.cxx
+++ b/canvas/source/vcl/canvashelper_texturefill.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: canvashelper_texturefill.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: rt $ $Date: 2005-12-14 14:57:53 $
+ * last change: $Author: hr $ $Date: 2006-06-20 02:20:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -128,6 +128,8 @@ namespace vclcanvas
bool bFillNonOverlapping,
bool bAxialGradient )
{
+ (void)bFillNonOverlapping;
+
// determine general position of gradient in relation to
// the bound rect
// =====================================================
@@ -247,17 +249,17 @@ namespace vclcanvas
// increased by one, to account for the fact that we
// calculate the right border here (whereas the fill
// color is governed by the left edge)
- const ::basegfx::B2DPoint& rPoint1(
+ const ::basegfx::B2DPoint& rPoint3(
(nStepCount - i-1)/(double)nStepCount*aLeftTop +
(i+1)/(double)nStepCount*aRightTop );
- aTempPoly[1] = ::Point( ::basegfx::fround( rPoint1.getX() ),
- ::basegfx::fround( rPoint1.getY() ) );
+ aTempPoly[1] = ::Point( ::basegfx::fround( rPoint3.getX() ),
+ ::basegfx::fround( rPoint3.getY() ) );
- const ::basegfx::B2DPoint& rPoint2(
+ const ::basegfx::B2DPoint& rPoint4(
(nStepCount - i-1)/(double)nStepCount*aLeftBottom +
(i+1)/(double)nStepCount*aRightBottom );
- aTempPoly[2] = ::Point( ::basegfx::fround( rPoint2.getX() ),
- ::basegfx::fround( rPoint2.getY() ) );
+ aTempPoly[2] = ::Point( ::basegfx::fround( rPoint4.getX() ),
+ ::basegfx::fround( rPoint4.getY() ) );
rOutDev.DrawPolygon( aTempPoly );
}
@@ -607,6 +609,8 @@ namespace vclcanvas
const rendering::Texture& texture,
int nTransparency )
{
+ (void)nTransparency;
+
// TODO(T2): It is maybe necessary to lock here, should
// maGradientPoly someday cease to be const. But then, beware of
// deadlocks, canvashelper calls this method with locked own
@@ -939,7 +943,6 @@ namespace vclcanvas
// scale down bitmap to [0,1]x[0,1] rect, as required
// from the XCanvas interface.
::basegfx::B2DHomMatrix aScaling;
- ::basegfx::B2DHomMatrix aTotalTransform; // with extra bitmap down-scaling
::basegfx::B2DHomMatrix aPureTotalTransform; // pure view*render*texture transform
aScaling.scale( 1.0/aBmpSize.Width,
1.0/aBmpSize.Height );