[Libreoffice-commits] core.git: vcl/source
Tsutomu Uchino
hanya at apache.org
Wed Jan 22 02:17:25 PST 2014
vcl/source/gdi/dibtools.cxx | 12 ------------
1 file changed, 12 deletions(-)
New commits:
commit b65991145a07287f93b9738f4b9ab3ceca36402d
Author: Tsutomu Uchino <hanya at apache.org>
Date: Wed Jan 22 06:16:21 2014 +0000
Resolves: #i106063# avoid additional seek for true color DIB
The position in the stream is already at the end of color palette.
(cherry picked from commit 352ca2f6ecf8910afa24c53d7e872f62b2321321)
Change-Id: I1696c1b6780407ab579b6215ab13a327ae09fc32
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index 79bc942..389f17e 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -414,12 +414,6 @@ bool ImplReadDIBBits(SvStream& rIStm, DIBV5Header& rHeader, BitmapWriteAccess& r
// Read data
if(bNative)
{
- // true color DIB's can have a (optimization) palette
- if(rHeader.nColsUsed && 8 < rHeader.nBitCount)
- {
- rIStm.SeekRel(rHeader.nColsUsed * ((rHeader.nSize != DIBCOREHEADERSIZE ) ? 4 : 3));
- }
-
rIStm.Read(rAcc.GetBuffer(), rHeader.nHeight * nAlignedWidth);
}
else
@@ -455,12 +449,6 @@ bool ImplReadDIBBits(SvStream& rIStm, DIBV5Header& rHeader, BitmapWriteAccess& r
const long nHeight(rHeader.nHeight);
sal_uInt8* pBuf = new sal_uInt8[nAlignedWidth];
- // true color DIB's can have a (optimization) palette
- if(rHeader.nColsUsed && 8 < rHeader.nBitCount)
- {
- rIStm.SeekRel(rHeader.nColsUsed * ((rHeader.nSize != DIBCOREHEADERSIZE ) ? 4 : 3));
- }
-
const long nI(bTopDown ? 1 : -1);
long nY(bTopDown ? 0 : nHeight - 1);
long nCount(nHeight);
More information about the Libreoffice-commits
mailing list