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
6b4cffc4
Kaydet (Commit)
6b4cffc4
authored
Ara 13, 2015
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
build fix
Change-Id: I4be6445ff49d04e9e2f4146b4f5536770249fb84
üst
ceef0230
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
init.cxx
desktop/source/lib/init.cxx
+3
-2
No files found.
desktop/source/lib/init.cxx
Dosyayı görüntüle @
6b4cffc4
...
...
@@ -1573,7 +1573,7 @@ unsigned char* doc_renderFont(LibreOfficeKitDocument* /*pThis*/,
if
(
!
aSearchedFontName
.
equals
(
aFontName
.
toUtf8
().
getStr
()))
continue
;
VirtualDevice
aDevice
(
nullptr
,
Size
(
1
,
1
),
DeviceFormat
::
DEFAULT
);
VirtualDevice
aDevice
(
nullptr
,
Size
(
1
,
1
),
0
);
::
Rectangle
aRect
;
vcl
::
Font
aFont
(
rInfo
);
aFont
.
SetSize
(
Size
(
0
,
25
));
...
...
@@ -1587,11 +1587,12 @@ unsigned char* doc_renderFont(LibreOfficeKitDocument* /*pThis*/,
unsigned
char
*
pBuffer
=
static_cast
<
unsigned
char
*>
(
malloc
(
4
*
nFontWidth
*
nFontHeight
));
memset
(
pBuffer
,
0
,
nFontWidth
*
nFontHeight
*
4
);
boost
::
shared_array
<
sal_uInt8
>
aBuffer
(
pBuffer
,
NoDelete
<
sal_uInt8
>
());
boost
::
shared_array
<
sal_uInt8
>
aAlphaBuffer
;
aDevice
.
SetBackground
(
Wallpaper
(
COL_TRANSPARENT
));
aDevice
.
SetOutputSizePixelScaleOffsetAndBuffer
(
Size
(
nFontWidth
,
nFontHeight
),
Fraction
(
1.0
),
Point
(),
aBuffer
,
nullpt
r
);
aBuffer
,
aAlphaBuffe
r
);
aDevice
.
DrawText
(
Point
(
0
,
0
),
aFontName
);
return
pBuffer
;
...
...
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