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
fbfe9da2
Kaydet (Commit)
fbfe9da2
authored
Ock 11, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svp: reroute setPixel through cairo path
Change-Id: I0f518048f6cfd5897a4cd79d0ad717fc91fb10bd
üst
f8a1a768
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
svpgdi.cxx
vcl/headless/svpgdi.cxx
+18
-19
No files found.
vcl/headless/svpgdi.cxx
Dosyayı görüntüle @
fbfe9da2
...
...
@@ -736,26 +736,25 @@ void SvpSalGraphics::drawPixel( long nX, long nY )
{
if
(
m_bUseLineColor
)
{
ensureClip
();
m_aDevice
->
setPixel
(
basegfx
::
B2IPoint
(
nX
,
nY
),
m_aLineColor
,
m_aDrawMode
,
m_aClipMap
);
drawPixel
(
nX
,
nY
,
m_aLineColor
.
toInt32
());
}
dbgOut
(
m_aDevice
);
}
void
SvpSalGraphics
::
drawPixel
(
long
nX
,
long
nY
,
SalColor
nSalColor
)
{
basebmp
::
Color
aColor
(
nSalColor
);
ensureClip
();
m_aDevice
->
setPixel
(
basegfx
::
B2IPoint
(
nX
,
nY
),
aColor
,
m_aDrawMode
,
m_aClipMap
);
dbgOut
(
m_aDevice
);
basebmp
::
Color
aOrigFillColor
=
m_aFillColor
;
bool
bOrigUseFillColor
=
m_bUseFillColor
;
bool
bOrigUseLineColor
=
m_bUseLineColor
;
basegfx
::
B2DPolygon
aRect
=
basegfx
::
tools
::
createPolygonFromRect
(
basegfx
::
B2DRectangle
(
nX
,
nY
,
nX
+
1
,
nY
+
1
));
m_bUseLineColor
=
false
;
m_bUseFillColor
=
true
;
m_aFillColor
=
basebmp
::
Color
(
nSalColor
);
drawPolyPolygon
(
basegfx
::
B2DPolyPolygon
(
aRect
),
0.0
);
m_bUseFillColor
=
bOrigUseFillColor
;
m_bUseLineColor
=
bOrigUseLineColor
;
m_aFillColor
=
aOrigFillColor
;
}
void
SvpSalGraphics
::
drawLine
(
long
nX1
,
long
nY1
,
long
nX2
,
long
nY2
)
...
...
@@ -784,7 +783,7 @@ void SvpSalGraphics::drawRect( long nX, long nY, long nWidth, long nHeight )
{
basegfx
::
B2DPolygon
aRect
=
basegfx
::
tools
::
createPolygonFromRect
(
basegfx
::
B2DRectangle
(
nX
,
nY
,
nX
+
nWidth
,
nY
+
nHeight
));
m_bUseFillColor
=
true
;
drawPolyPolygon
(
basegfx
::
B2DPolyPolygon
(
aRect
),
0
);
drawPolyPolygon
(
basegfx
::
B2DPolyPolygon
(
aRect
),
0
.0
);
m_bUseFillColor
=
false
;
}
...
...
@@ -793,7 +792,7 @@ void SvpSalGraphics::drawRect( long nX, long nY, long nWidth, long nHeight )
// need same -1 hack as X11SalGraphicsImpl::drawRect
basegfx
::
B2DPolygon
aRect
=
basegfx
::
tools
::
createPolygonFromRect
(
basegfx
::
B2DRectangle
(
nX
,
nY
,
nX
+
nWidth
-
1
,
nY
+
nHeight
-
1
));
m_bUseLineColor
=
true
;
drawPolyPolygon
(
basegfx
::
B2DPolyPolygon
(
aRect
),
0
);
drawPolyPolygon
(
basegfx
::
B2DPolyPolygon
(
aRect
),
0
.0
);
m_bUseLineColor
=
false
;
}
...
...
@@ -823,7 +822,7 @@ void SvpSalGraphics::drawPolygon(sal_uInt32 nPoints, const SalPoint* pPtAry)
for
(
sal_uInt32
i
=
1
;
i
<
nPoints
;
++
i
)
aPoly
.
setB2DPoint
(
i
,
basegfx
::
B2DPoint
(
pPtAry
[
i
].
mnX
,
pPtAry
[
i
].
mnY
));
drawPolyPolygon
(
basegfx
::
B2DPolyPolygon
(
aPoly
),
0
);
drawPolyPolygon
(
basegfx
::
B2DPolyPolygon
(
aPoly
),
0
.0
);
}
void
SvpSalGraphics
::
drawPolyPolygon
(
sal_uInt32
nPoly
,
...
...
@@ -846,7 +845,7 @@ void SvpSalGraphics::drawPolyPolygon(sal_uInt32 nPoly,
}
}
drawPolyPolygon
(
aPolyPoly
,
0
);
drawPolyPolygon
(
aPolyPoly
,
0
.0
);
}
static
const
basegfx
::
B2DPoint
aHalfPointOfs
(
0.5
,
0.5
);
...
...
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