Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
08cb6e93
Kaydet (Commit)
08cb6e93
authored
Şub 26, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
expand this 1980's shift-fest, torture-by-ternery and magic '3' into human
Change-Id: Ifb18d5fd0b330dde0edc428621af417ddc836b21
üst
5e5b90c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
14 deletions
+25
-14
dibtools.hxx
include/vcl/dibtools.hxx
+7
-1
emfwr.cxx
vcl/source/filter/wmf/emfwr.cxx
+18
-4
dibtools.cxx
vcl/source/gdi/dibtools.cxx
+0
-9
No files found.
include/vcl/dibtools.hxx
Dosyayı görüntüle @
08cb6e93
...
...
@@ -24,14 +24,20 @@
#include <tools/rc.hxx>
#include <vcl/region.hxx>
// predefines
class
SvStream
;
class
BitmapEx
;
class
Bitmap
;
// - Compression defines
#define COMPRESS_OWN ('S'|('D'<<8UL))
#define COMPRESS_NONE ( 0UL )
#define RLE_8 ( 1UL )
#define RLE_4 ( 2UL )
#define BITFIELDS ( 3UL )
#define ZCOMPRESS ( COMPRESS_OWN | 0x01000000UL )
/* == 'SD01' (binary) */
bool
VCL_DLLPUBLIC
ReadDIB
(
// ReadDIB(rBitmap, rIStm, true);
Bitmap
&
rTarget
,
...
...
vcl/source/filter/wmf/emfwr.cxx
Dosyayı görüntüle @
08cb6e93
...
...
@@ -856,15 +856,29 @@ void EMFWriter::ImplWriteBmpRecord( const Bitmap& rBmp, const Point& rPt,
aMemStm
.
SeekRel
(
8
);
aMemStm
.
ReadUInt32
(
nColsUsed
);
nPalCount
=
(
nBitCount
<=
8
)
?
(
nColsUsed
?
nColsUsed
:
(
1
<<
(
sal_uInt32
)
nBitCount
)
)
:
(
(
3
==
nCompression
)
?
3
:
0
);
if
(
nBitCount
<=
8
)
{
if
(
nColsUsed
)
nPalCount
=
nColsUsed
;
else
nPalCount
=
1
<<
(
sal_uInt32
)
nBitCount
;
}
else
{
if
(
nCompression
==
BITFIELDS
)
nPalCount
=
3
;
else
nPalCount
=
0
;
}
sal_uInt32
nPalSize
=
nPalCount
*
4
;
m_rStm
.
Write
(
aMemStm
.
GetData
(),
nDIBSize
);
const
sal_uLong
nEndPos
=
m_rStm
.
Tell
();
m_rStm
.
Seek
(
nOffPos
);
m_rStm
.
WriteUInt32
(
80
).
WriteUInt32
(
nHeaderSize
+
(
nPalCount
<<
2
)
);
m_rStm
.
WriteUInt32
(
80
+
(
nHeaderSize
+
(
nPalCount
<<
2
)
)
).
WriteUInt32
(
nImageSize
);
m_rStm
.
WriteUInt32
(
80
).
WriteUInt32
(
nHeaderSize
+
nPalSize
);
m_rStm
.
WriteUInt32
(
80
+
nHeaderSize
+
nPalSize
).
WriteUInt32
(
nImageSize
);
m_rStm
.
Seek
(
nEndPos
);
ImplEndRecord
();
...
...
vcl/source/gdi/dibtools.cxx
Dosyayı görüntüle @
08cb6e93
...
...
@@ -37,15 +37,6 @@
#define DIBINFOHEADERSIZE ( sizeof(DIBInfoHeader) )
#define DIBV5HEADERSIZE ( sizeof(DIBV5Header) )
// - Compression defines
#define COMPRESS_OWN ('S'|('D'<<8UL))
#define COMPRESS_NONE ( 0UL )
#define RLE_8 ( 1UL )
#define RLE_4 ( 2UL )
#define BITFIELDS ( 3UL )
#define ZCOMPRESS ( COMPRESS_OWN | 0x01000000UL )
/* == 'SD01' (binary) */
// - DIBInfoHeader and DIBV5Header
typedef
sal_Int32
FXPT2DOT30
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment