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
796b2d6b
Kaydet (Commit)
796b2d6b
authored
Eyl 03, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
opengl: let OutputDevice do the bezier subdivision
Change-Id: I0620cd29695d792320c6e3209dff84822485d883
üst
1249262e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
22 deletions
+8
-22
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+8
-22
No files found.
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
796b2d6b
...
...
@@ -1424,33 +1424,19 @@ bool OpenGLSalGraphicsImpl::drawPolyLine(
return
false
;
}
// #i11575#desc5#b adjust B2D tesselation result to raster positions
basegfx
::
B2DPolygon
aPolygon
=
rPolygon
;
const
double
fHalfWidth
=
0.5
*
rLineWidth
.
getX
();
// shortcut for hairline drawing to improve performance
if
(
bIsHairline
)
{
PreDraw
();
if
(
UseSolidAA
(
mnLineColor
,
fTransparency
))
{
tools
::
Polygon
aToolsPolygon
(
aPolygon
);
sal_uInt32
nPoints
=
aToolsPolygon
.
GetSize
();
if
(
aToolsPolygon
.
HasFlags
())
{
aToolsPolygon
=
tools
::
Polygon
::
SubdivideBezier
(
aToolsPolygon
);
nPoints
=
aToolsPolygon
.
GetSize
();
}
for
(
sal_uInt32
i
=
0
;
i
<
nPoints
-
1
;
++
i
)
{
DrawLineAA
(
aToolsPolygon
[
i
].
X
(),
aToolsPolygon
[
i
].
Y
(),
aToolsPolygon
[
i
+
1
].
X
(),
aToolsPolygon
[
i
+
1
].
Y
());
}
}
PostDraw
();
return
true
;
// Let's just leave it to OutputDevice to do the bezier subdivision,
// drawPolyLine(sal_uInt32 nPoints, const SalPoint* pPtAry) will be
// called with the result.
return
false
;
}
// #i11575#desc5#b adjust B2D tesselation result to raster positions
basegfx
::
B2DPolygon
aPolygon
=
rPolygon
;
const
double
fHalfWidth
=
0.5
*
rLineWidth
.
getX
();
// get the area polygon for the line polygon
if
(
(
rLineWidth
.
getX
()
!=
rLineWidth
.
getY
())
&&
!
basegfx
::
fTools
::
equalZero
(
rLineWidth
.
getY
()
)
)
...
...
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