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
449aa3c6
Kaydet (Commit)
449aa3c6
authored
Mar 31, 2014
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Just spell out the NULL instead of having a const variable for it
Change-Id: Iee45a5bb80a1d3149aa231f2848910eee415a64b
üst
a13362ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
salgdicommon.cxx
vcl/quartz/salgdicommon.cxx
+3
-4
No files found.
vcl/quartz/salgdicommon.cxx
Dosyayı görüntüle @
449aa3c6
...
...
@@ -56,7 +56,6 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
return
;
}
(
void
)
bPixelSnap
;
// TODO
const
CGAffineTransform
*
pTransform
=
NULL
;
const
bool
bHasCurves
=
rPolygon
.
areControlPointsUsed
();
for
(
int
nPointIdx
=
0
,
nPrevIdx
=
0
;;
nPrevIdx
=
nPointIdx
++
)
...
...
@@ -91,7 +90,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
if
(
!
nPointIdx
)
{
// first point => just move there
CGPathMoveToPoint
(
xPath
,
pTransform
,
aPoint
.
getX
(),
aPoint
.
getY
()
);
CGPathMoveToPoint
(
xPath
,
NULL
,
aPoint
.
getX
(),
aPoint
.
getY
()
);
continue
;
}
...
...
@@ -104,7 +103,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
if
(
!
bPendingCurve
)
// line segment
{
CGPathAddLineToPoint
(
xPath
,
pTransform
,
aPoint
.
getX
(),
aPoint
.
getY
()
);
CGPathAddLineToPoint
(
xPath
,
NULL
,
aPoint
.
getX
(),
aPoint
.
getY
()
);
}
else
// cubic bezier segment
{
...
...
@@ -115,7 +114,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
aCP1
+=
aHalfPointOfs
;
aCP2
+=
aHalfPointOfs
;
}
CGPathAddCurveToPoint
(
xPath
,
pTransform
,
aCP1
.
getX
(),
aCP1
.
getY
(),
CGPathAddCurveToPoint
(
xPath
,
NULL
,
aCP1
.
getX
(),
aCP1
.
getY
(),
aCP2
.
getX
(),
aCP2
.
getY
(),
aPoint
.
getX
(),
aPoint
.
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