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
e4088a68
Kaydet (Commit)
e4088a68
authored
May 17, 2013
tarafından
Khaled Hosny
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Drop unused mpGlyphPositions array
Change-Id: I858832a41ef140fa9916e05548edf2df6b0af451
üst
81ec93f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
salcoretextlayout.cxx
vcl/coretext/salcoretextlayout.cxx
+1
-9
No files found.
vcl/coretext/salcoretextlayout.cxx
Dosyayı görüntüle @
e4088a68
...
...
@@ -81,7 +81,6 @@ private:
mutable
CGSize
*
mpGlyphAdvances
;
mutable
CGPoint
*
mpGlyphPositions
;
mutable
CTTypesetterRef
mpTypesetter
;
mutable
CTLineRef
mpLine
;
mutable
bool
mbHasBoundRectangle
;
...
...
@@ -108,7 +107,6 @@ CoreTextLayout::CoreTextLayout(CoreTextStyleInfo* style) :
mpCharWidths
(
NULL
),
mpGlyphs2Chars
(
NULL
),
mpGlyphAdvances
(
NULL
),
mpGlyphPositions
(
NULL
),
mpTypesetter
(
NULL
),
mpLine
(
NULL
),
mbHasBoundRectangle
(
false
),
...
...
@@ -196,10 +194,6 @@ void CoreTextLayout::InvalidateMeasurements()
delete
[]
mpGlyphAdvances
;
mpGlyphAdvances
=
NULL
;
}
if
(
mpGlyphPositions
)
{
delete
[]
mpGlyphPositions
;
mpGlyphPositions
=
NULL
;
}
mbHasBoundRectangle
=
false
;
}
...
...
@@ -601,7 +595,6 @@ void CoreTextLayout::GetMeasurements()
mpCharWidths
=
new
CGFloat
[
mnCharCount
];
mpGlyphs2Chars
=
new
int
[
mnGlyphCount
];
mpGlyphAdvances
=
new
CGSize
[
mnGlyphCount
];
mpGlyphPositions
=
new
CGPoint
[
mnGlyphCount
];
CFArrayRef
runs
=
CTLineGetGlyphRuns
(
mpLine
);
const
CFIndex
nRuns
=
CFArrayGetCount
(
runs
);
...
...
@@ -630,7 +623,6 @@ void CoreTextLayout::GetMeasurements()
CTRunGetGlyphs
(
run
,
CFRangeMake
(
0
,
0
),
&
mpGlyphs
[
lineGlyphIx
]
);
CTRunGetPositions
(
run
,
CFRangeMake
(
0
,
0
),
&
mpGlyphPositions
[
lineGlyphIx
]
);
CTRunGetAdvances
(
run
,
CFRangeMake
(
0
,
0
),
&
mpGlyphAdvances
[
lineGlyphIx
]
);
for
(
CFIndex
runGlyphIx
=
0
;
runGlyphIx
<
runGlyphCount
;
lineGlyphIx
++
,
runGlyphIx
++
)
...
...
@@ -645,7 +637,7 @@ void CoreTextLayout::GetMeasurements()
for
(
int
i
=
0
;
i
<
runGlyphCount
;
i
++
)
{
const
int
ix
=
lineRunGlyphStartIx
+
i
;
if
(
i
<
7
)
{
glyphPositionInfo
<<
" "
<<
mpGlyphs
[
ix
]
<<
"@"
<<
mpGlyphPositions
[
ix
]
;
glyphPositionInfo
<<
" "
<<
mpGlyphs
[
ix
];
glyphAdvancesInfo
<<
" "
<<
mpGlyphAdvances
[
ix
];
}
else
if
(
i
==
7
)
{
glyphPositionInfo
<<
"..."
;
...
...
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