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
e437b130
Kaydet (Commit)
e437b130
authored
Ock 18, 2015
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
try to handle properly fillcolor != linecolor in opengl polypolygons drawing
Change-Id: I962416f48fdb348d8a3d95edf747cfe2f1c929c9
üst
90630adc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+15
-1
No files found.
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
e437b130
...
...
@@ -1191,7 +1191,7 @@ void OpenGLSalGraphicsImpl::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32*
}
}
if
(
UseSolidAA
(
mnLineColor
)
)
if
(
mnLineColor
!=
mnFillColor
&&
UseSolidAA
(
mnLineColor
)
)
{
// TODO Use glMultiDrawElements or primitive restart
for
(
sal_uInt32
i
=
0
;
i
<
nPoly
;
i
++
)
...
...
@@ -1212,6 +1212,20 @@ bool OpenGLSalGraphicsImpl::drawPolyPolygon( const ::basegfx::B2DPolyPolygon& rP
if
(
UseSolid
(
mnFillColor
,
fTransparency
)
)
DrawPolyPolygon
(
rPolyPolygon
);
if
(
mnLineColor
!=
mnFillColor
&&
UseSolidAA
(
mnLineColor
)
)
{
for
(
sal_uInt32
i
=
0
;
i
<
rPolyPolygon
.
count
();
i
++
)
{
const
basegfx
::
B2DPolygon
&
polygon
=
rPolyPolygon
.
getB2DPolygon
(
i
);
for
(
sal_uInt32
j
=
0
;
j
<
polygon
.
count
();
++
j
)
{
const
basegfx
::
B2DPoint
&
rPt1
=
polygon
.
getB2DPoint
(
j
);
const
basegfx
::
B2DPoint
&
rPt2
=
polygon
.
getB2DPoint
((
j
+
1
)
%
polygon
.
count
());
DrawLineAA
(
rPt1
.
getX
(),
rPt1
.
getY
(),
rPt2
.
getX
(),
rPt2
.
getY
());
}
}
}
PostDraw
();
return
true
;
...
...
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