diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-08-03 18:27:32 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-08-03 18:27:32 (GMT) |
commit | 95812dd991bdcc63c9a4c10d4cf32811aa0c413b (patch) | |
tree | b34b314337c68ea998ea94a77b099f1251f70a60 /src | |
parent | 7dce0e368cdeec00641d029101d34e9ce64395f6 (diff) | |
download | Qt-95812dd991bdcc63c9a4c10d4cf32811aa0c413b.zip Qt-95812dd991bdcc63c9a4c10d4cf32811aa0c413b.tar.gz Qt-95812dd991bdcc63c9a4c10d4cf32811aa0c413b.tar.bz2 |
CFbsBitmap::DataSize() seems to be a private Api function.
But CFbsBitmap::Header().iBitmapSize seems to do the same job,
and it works wit hthe public SDK.
Thanks to jbarron for finding that public pendant.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qs60style_s60.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp index 8e9918e..81ee8b1 100644 --- a/src/gui/styles/qs60style_s60.cpp +++ b/src/gui/styles/qs60style_s60.cpp @@ -905,7 +905,7 @@ void QS60StyleModeSpecifics::checkAndUnCompressBitmapL(CFbsBitmap*& aOriginalBit const TSize iconSize = aOriginalBitmap->SizeInPixels(); const int iconBytesPerLine = CFbsBitmap::ScanLineLength(iconSize.iWidth, aOriginalBitmap->DisplayMode()); const int iconBytesCount = iconBytesPerLine * iconSize.iHeight; - if (aOriginalBitmap->IsCompressedInRAM() || aOriginalBitmap->DataSize() < iconBytesCount) { + if (aOriginalBitmap->IsCompressedInRAM() || aOriginalBitmap->Header().iBitmapSize < iconBytesCount) { const TSize iconSize(aOriginalBitmap->SizeInPixels().iWidth, aOriginalBitmap->SizeInPixels().iHeight); CFbsBitmap* uncompressedBitmap = new (ELeave) CFbsBitmap(); |