[Libreoffice-commits] core.git: vcl/unx
Stephan Bergmann
sbergman at redhat.com
Mon Sep 7 07:58:56 PDT 2015
vcl/unx/generic/gdi/salbmp.cxx | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
New commits:
commit 39a6939b0f3ccdd3e11882aee40d2295d1774058
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Sep 7 16:57:19 2015 +0200
clang-analyzer-deadcode.DeadStores
...ever since c3607b3bcb4540a90dece1eb53d7945a959beb5c "INTEGRATION: CWS
presfixes01"
Change-Id: I29107b0e55d16a8a88e25c7b929eeb40d56686f0
diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx
index 1836ce7..c6c156b 100644
--- a/vcl/unx/generic/gdi/salbmp.cxx
+++ b/vcl/unx/generic/gdi/salbmp.cxx
@@ -233,7 +233,6 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
{
const SalTwoRect aTwoRect = { 0, 0, nWidth, nHeight, 0, 0, nWidth, nHeight };
BitmapBuffer aSrcBuf;
- sal_uLong nDstFormat = BMP_FORMAT_BOTTOM_UP;
const BitmapPalette* pDstPal = NULL;
aSrcBuf.mnFormat = BMP_FORMAT_TOP_DOWN;
@@ -255,7 +254,6 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
? BMP_FORMAT_1BIT_LSB_PAL
: BMP_FORMAT_1BIT_MSB_PAL
);
- nDstFormat |= BMP_FORMAT_1BIT_MSB_PAL;
}
break;
@@ -265,20 +263,17 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
? BMP_FORMAT_4BIT_LSN_PAL
: BMP_FORMAT_4BIT_MSN_PAL
);
- nDstFormat |= BMP_FORMAT_4BIT_MSN_PAL;
}
break;
case( 8 ):
{
aSrcBuf.mnFormat |= BMP_FORMAT_8BIT_PAL;
- nDstFormat |= BMP_FORMAT_8BIT_PAL;
}
break;
case( 16 ):
{
- nDstFormat |= BMP_FORMAT_24BIT_TC_BGR;
aSrcBuf.maColorMask = ColorMask( pImage->red_mask, pImage->green_mask, pImage->blue_mask );
if( LSBFirst == pImage->byte_order )
@@ -298,8 +293,6 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
aSrcBuf.mnFormat |= BMP_FORMAT_24BIT_TC_RGB;
else
aSrcBuf.mnFormat |= BMP_FORMAT_24BIT_TC_BGR;
-
- nDstFormat |= BMP_FORMAT_24BIT_TC_BGR;
}
break;
@@ -315,7 +308,6 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
? BMP_FORMAT_32BIT_TC_ABGR
: BMP_FORMAT_32BIT_TC_ARGB
);
- nDstFormat |= BMP_FORMAT_24BIT_TC_BGR;
}
break;
}
@@ -365,8 +357,7 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB(
}
}
- nDstFormat = aSrcBuf.mnFormat;
- pDIB = StretchAndConvert( aSrcBuf, aTwoRect, nDstFormat,
+ pDIB = StretchAndConvert( aSrcBuf, aTwoRect, aSrcBuf.mnFormat,
pDstPal, &aSrcBuf.maColorMask );
XDestroyImage( pImage );
}
More information about the Libreoffice-commits
mailing list