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
240e5daa
Kaydet (Commit)
240e5daa
authored
Haz 30, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
opengl: fix fat hairlines - draw hairlines using DrawLineAA
Change-Id: I935bef48fd057e6223dcfc437cbaf2888842fd61
üst
9583020a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+9
-10
No files found.
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
240e5daa
...
@@ -1348,20 +1348,19 @@ bool OpenGLSalGraphicsImpl::drawPolyLine(
...
@@ -1348,20 +1348,19 @@ bool OpenGLSalGraphicsImpl::drawPolyLine(
//bool bDrawnOk = true;
//bool bDrawnOk = true;
if
(
bIsHairline
)
if
(
bIsHairline
)
{
{
// hairlines can be drawn in a simpler way (the linejoin and linecap styles can be ignored)
PreDraw
();
basegfx
::
B2DTrapezoidVector
aB2DTrapVector
;
if
(
UseSolidAA
(
mnLineColor
)
)
basegfx
::
tools
::
createLineTrapezoidFromB2DPolygon
(
aB2DTrapVector
,
aPolygon
,
rLineWidth
.
getX
()
);
// draw tesselation result
if
(
aB2DTrapVector
.
size
())
{
{
PreDraw
();
sal_uInt32
nPoints
=
rPolygon
.
count
();
if
(
UseSolid
(
mnLineColor
,
fTransparency
)
)
for
(
sal_uInt32
i
=
0
;
i
<
nPoints
-
1
;
++
i
)
{
{
for
(
size_t
i
=
0
;
i
<
aB2DTrapVector
.
size
();
++
i
)
const
basegfx
::
B2DPoint
&
rPt1
=
rPolygon
.
getB2DPoint
(
i
);
DrawTrapezoid
(
aB2DTrapVector
[
i
]
);
const
basegfx
::
B2DPoint
&
rPt2
=
rPolygon
.
getB2DPoint
(
i
+
1
);
DrawLineAA
(
rPt1
.
getX
(),
rPt1
.
getY
(),
rPt2
.
getX
(),
rPt2
.
getY
());
}
}
PostDraw
();
}
}
PostDraw
();
return
true
;
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