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
83632a63
Kaydet (Commit)
83632a63
authored
Haz 20, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
basebmp: back-port un-expected enumeration changes.
Change-Id: Ic96e1b1394cf0277535b48630c2a1ae77e4db670
üst
ab65f376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
bmpmasktest.cxx
basebmp/test/bmpmasktest.cxx
+8
-8
No files found.
basebmp/test/bmpmasktest.cxx
Dosyayı görüntüle @
83632a63
...
...
@@ -61,7 +61,7 @@ private:
mpMaskBmp1bpp
,
aSourceRect
,
aDestAll
,
DrawMode_PAINT
);
DrawMode
::
DrawMode
_PAINT
);
CPPUNIT_ASSERT_MESSAGE
(
"number of rendered pixel is not 30"
,
countPixel
(
rDevice
,
aCol
)
==
30
);
}
...
...
@@ -165,7 +165,7 @@ public:
basebmp
::
Format
nFormat
;
nFormat
=
F
ormat
::
OneBitMsbPal
;
nFormat
=
F
ORMAT_ONE_BIT_MSB_PAL
;
// nFormat = Format::OneBitMsbGrey; // FIXME - un-comment me to crash hard.
xMask
=
createBitmapDevice
(
aSize
,
false
/* bTopDown */
,
nFormat
,
...
...
@@ -180,20 +180,20 @@ public:
basegfx
::
tools
::
importFromSvgD
(
aPoly
,
"m 2 2 h4 v8 h-4z"
,
false
,
NULL
);
xMask
->
fillPolyPolygon
(
aPoly
,
basebmp
::
Color
(
0xff
,
0xff
,
0xff
),
DrawMode
::
Paint
);
DrawMode
::
DrawMode_PAINT
);
xBitmap
=
createBitmapDevice
(
aSize
,
false
,
F
ormat
::
ThirtyTwoBitTcMask
BGRX
,
F
ORMAT_THIRTYTWO_BIT_TC_MASK_
BGRX
,
basebmp
::
getBitmapDeviceStrideForWidth
(
F
ormat
::
ThirtyTwoBitTcMaskBGRX
,
aSize
.
getX
()
)
);
F
ORMAT_THIRTYTWO_BIT_TC_MASK_BGRX
,
aSize
.
getX
()
)
);
xBitmap
->
clear
(
Color
(
0x80808080
));
}
{
// mpOutput & mpBitmap
const
basegfx
::
B2ISize
aSize
(
9
,
9
);
xOutput
=
createBitmapDevice
(
aSize
,
false
,
F
ormat
::
ThirtyTwoBitTcMask
BGRX
,
F
ORMAT_THIRTYTWO_BIT_TC_MASK_
BGRX
,
basebmp
::
getBitmapDeviceStrideForWidth
(
F
ormat
::
ThirtyTwoBitTcMask
BGRX
,
aSize
.
getX
())
);
F
ORMAT_THIRTYTWO_BIT_TC_MASK_
BGRX
,
aSize
.
getX
())
);
xOutput
->
clear
(
Color
(
0xffffffff
));
}
...
...
@@ -203,7 +203,7 @@ public:
xOutput
->
drawMaskedBitmap
(
xBitmap
,
xMask
,
aSourceRect
,
aDestAll
,
DrawMode
::
Paint
);
DrawMode
::
DrawMode_PAINT
);
CPPUNIT_ASSERT_MESSAGE
(
"output not cleared to white"
,
xOutput
->
getPixelData
(
basegfx
::
B2IPoint
(
0
,
0
)
)
==
0xffffff
);
...
...
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