diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/bitmap/bitmapscalesuper.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/source/bitmap/bitmapscalesuper.cxx b/vcl/source/bitmap/bitmapscalesuper.cxx index cbfb08e330b6..070747b9cf9d 100644 --- a/vcl/source/bitmap/bitmapscalesuper.cxx +++ b/vcl/source/bitmap/bitmapscalesuper.cxx @@ -22,6 +22,8 @@ #include <boost/scoped_array.hpp> +namespace { + #define MAP( cVal0, cVal1, nFrac ) ((sal_uInt8)((((long)(cVal0)<<7L)+nFrac*((long)(cVal1)-(cVal0)))>>7L)) void generateMap(long nW, long nDstW, bool bHMirr, long* pMapIX, long* pMapFX) @@ -176,8 +178,8 @@ void scale24bitBGR(BitmapReadAccess* pAcc, BitmapWriteAccess* pWAcc, } void scale24bitRGB(BitmapReadAccess* pAcc, BitmapWriteAccess* pWAcc, - long nStartX, long nEndX, long nStartY, long nEndY, - bool bVMirr, bool bHMirr) + long nStartX, long nEndX, long nStartY, long nEndY, + bool bVMirr, bool bHMirr) { boost::scoped_array<long> pMapIX(new long[pWAcc->Width()]); boost::scoped_array<long> pMapIY(new long[pWAcc->Height()]); @@ -931,6 +933,8 @@ void scaleNonPalleteGeneral2(BitmapReadAccess* pAcc, BitmapWriteAccess* pWAcc, } } +} // end anonymous namespace + BitmapScaleSuper::BitmapScaleSuper(const double& rScaleX, const double& rScaleY) : mrScaleX(rScaleX), mrScaleY(rScaleY) |