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
d59358ee
Kaydet (Commit)
d59358ee
authored
Mar 10, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
slightly odd stuff here
Change-Id: I715d49722ebe4658c108cb9b7bd6fa3934d973f8
üst
d1698027
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
lwpbackgroundstuff.cxx
lotuswordpro/source/filter/lwpbackgroundstuff.cxx
+7
-16
No files found.
lotuswordpro/source/filter/lwpbackgroundstuff.cxx
Dosyayı görüntüle @
d59358ee
...
@@ -83,14 +83,11 @@ void LwpBackgroundStuff::GetPattern(sal_uInt16 btPttnIndex, sal_uInt8* pPttnArra
...
@@ -83,14 +83,11 @@ void LwpBackgroundStuff::GetPattern(sal_uInt16 btPttnIndex, sal_uInt8* pPttnArra
assert
(
false
);
assert
(
false
);
return
;
return
;
}
}
if
(
pPttnArray
)
assert
((
2
<
btPttnIndex
)
&&
(
btPttnIndex
<
72
));
const
sal_uInt8
*
pTempArray
=
s_pLwpPatternTab
[
btPttnIndex
];
for
(
sal_uInt8
i
=
0
;
i
<
32
;
i
++
)
{
{
assert
((
2
<
btPttnIndex
)
&&
(
btPttnIndex
<
72
));
pPttnArray
[
i
]
=
(
i
%
4
==
0
)
?
pTempArray
[
7
-
i
/
4
]
:
0
;
const
sal_uInt8
*
pTempArray
=
s_pLwpPatternTab
[
btPttnIndex
];
for
(
sal_uInt8
i
=
0
;
i
<
32
;
i
++
)
{
pPttnArray
[
i
]
=
(
i
%
4
==
0
)
?
pTempArray
[
7
-
i
/
4
]
:
0
;
}
}
}
}
}
...
@@ -113,22 +110,16 @@ XFBGImage* LwpBackgroundStuff::GetFillPattern()
...
@@ -113,22 +110,16 @@ XFBGImage* LwpBackgroundStuff::GetFillPattern()
}
}
// get pattern array from pattern table
// get pattern array from pattern table
sal_uInt8
*
pPttnArray
=
new
sal_uInt8
[
32
];
sal_uInt8
aPttnArray
[
32
];
this
->
GetPattern
(
m_nID
,
p
PttnArray
);
GetPattern
(
m_nID
,
a
PttnArray
);
// create bitmap object from the pattern array
// create bitmap object from the pattern array
Bitmap
aBmp
(
Size
(
8
,
8
),
1
);
Bitmap
aBmp
(
Size
(
8
,
8
),
1
);
BitmapWriteAccess
*
pWA
=
aBmp
.
AcquireWriteAccess
();
BitmapWriteAccess
*
pWA
=
aBmp
.
AcquireWriteAccess
();
sal_uInt8
*
pBuf
=
pWA
->
GetBuffer
();
sal_uInt8
*
pBuf
=
pWA
->
GetBuffer
();
memcpy
(
pBuf
,
p
PttnArray
,
32
);
memcpy
(
pBuf
,
a
PttnArray
,
32
);
aBmp
.
ReleaseAccess
(
pWA
);
aBmp
.
ReleaseAccess
(
pWA
);
if
(
pPttnArray
)
{
delete
[]
pPttnArray
;
pPttnArray
=
NULL
;
}
// create XOBitmap object from bitmap object
// create XOBitmap object from bitmap object
XOBitmap
aXOBitmap
(
aBmp
);
XOBitmap
aXOBitmap
(
aBmp
);
aXOBitmap
.
Bitmap2Array
();
aXOBitmap
.
Bitmap2Array
();
...
...
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