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
239d4e0c
Kaydet (Commit)
239d4e0c
authored
Agu 19, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More hacks to glyph rendering for caching with OpenGL on Windows
Change-Id: I934ad7453f35909f4c3ad999e33453b5b6032480
üst
df42d081
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
winlayout.cxx
vcl/win/source/gdi/winlayout.cxx
+11
-2
No files found.
vcl/win/source/gdi/winlayout.cxx
Dosyayı görüntüle @
239d4e0c
...
@@ -160,7 +160,10 @@ inline std::basic_ostream<charT, traits> & operator <<(
...
@@ -160,7 +160,10 @@ inline std::basic_ostream<charT, traits> & operator <<(
stream
<<
"{"
;
stream
<<
"{"
;
for
(
auto
i
=
rCache
.
cbegin
();
i
!=
rCache
.
cend
();
++
i
)
for
(
auto
i
=
rCache
.
cbegin
();
i
!=
rCache
.
cend
();
++
i
)
{
{
stream
<<
"["
<<
i
->
mnFirstGlyph
<<
".."
<<
(
i
->
mnFirstGlyph
+
i
->
mnGlyphCount
-
1
)
<<
"]"
;
stream
<<
"["
<<
i
->
mnFirstGlyph
;
if
(
i
->
mnGlyphCount
>
1
)
stream
<<
".."
<<
(
i
->
mnFirstGlyph
+
i
->
mnGlyphCount
-
1
);
stream
<<
"]"
;
if
(
i
+
1
!=
rCache
.
cend
())
if
(
i
+
1
!=
rCache
.
cend
())
{
{
stream
<<
","
;
stream
<<
","
;
...
@@ -278,10 +281,16 @@ bool ImplWinFontEntry::AddChunkOfGlyphs(int nGlyphIndex, const WinLayout& rLayou
...
@@ -278,10 +281,16 @@ bool ImplWinFontEntry::AddChunkOfGlyphs(int nGlyphIndex, const WinLayout& rLayou
int
totWidth
=
0
;
int
totWidth
=
0
;
for
(
int
i
=
0
;
i
<
nCount
;
i
++
)
for
(
int
i
=
0
;
i
<
nCount
;
i
++
)
{
{
aDX
[
i
]
=
std
::
abs
(
aABC
[
i
].
abcA
)
+
aABC
[
i
].
abcB
+
std
::
abs
(
aABC
[
i
].
abcC
);
aDX
[
i
]
=
aABC
[
i
].
abcB
+
std
::
abs
(
aABC
[
i
].
abcC
);
if
(
i
==
0
)
aDX
[
0
]
+=
std
::
abs
(
aABC
[
0
].
abcA
);
if
(
i
<
nCount
-
1
)
aDX
[
i
]
+=
std
::
abs
(
aABC
[
i
+
1
].
abcA
);
totWidth
+=
aDX
[
i
];
totWidth
+=
aDX
[
i
];
}
}
SAL_INFO
(
"vcl.gdi.opengl"
,
"aSize=("
<<
aSize
.
cx
<<
","
<<
aSize
.
cy
<<
") totWidth="
<<
totWidth
);
if
(
SelectObject
(
hDC
,
hOrigFont
)
==
NULL
)
if
(
SelectObject
(
hDC
,
hOrigFont
)
==
NULL
)
SAL_WARN
(
"vcl.gdi"
,
"SelectObject failed: "
<<
WindowsErrorString
(
GetLastError
()));
SAL_WARN
(
"vcl.gdi"
,
"SelectObject failed: "
<<
WindowsErrorString
(
GetLastError
()));
if
(
!
DeleteDC
(
hDC
))
if
(
!
DeleteDC
(
hDC
))
...
...
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