Kaydet (Commit) 5cfd4e92 authored tarafından Julien Nabet's avatar Julien Nabet

Reduce scope

Change-Id: Ifbfd8e4b7a549d0225229a60a12b1b346fc02828
üst 00ae1cec
...@@ -483,7 +483,6 @@ namespace vclcanvas ...@@ -483,7 +483,6 @@ namespace vclcanvas
tools::OutDevStateKeeper aStateKeeper( mpProtectedOutDev ); tools::OutDevStateKeeper aStateKeeper( mpProtectedOutDev );
const int nTransparency( setupOutDevState( viewState, renderState, FILL_COLOR ) ); const int nTransparency( setupOutDevState( viewState, renderState, FILL_COLOR ) );
const int nTransPercent( (nTransparency * 100 + 128) / 255 ); // normal rounding, no truncation here
::basegfx::B2DPolyPolygon aB2DPolyPoly( ::basegfx::B2DPolyPolygon aB2DPolyPoly(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon)); ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon));
aB2DPolyPoly.setClosed(true); // ensure closed poly, otherwise VCL does not fill aB2DPolyPoly.setClosed(true); // ensure closed poly, otherwise VCL does not fill
...@@ -497,6 +496,7 @@ namespace vclcanvas ...@@ -497,6 +496,7 @@ namespace vclcanvas
} }
else else
{ {
const int nTransPercent( (nTransparency * 100 + 128) / 255 ); // normal rounding, no truncation here
mpOutDev->getOutDev().DrawTransparent( aPolyPoly, (sal_uInt16)nTransPercent ); mpOutDev->getOutDev().DrawTransparent( aPolyPoly, (sal_uInt16)nTransPercent );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment