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
1d18db33
Kaydet (Commit)
1d18db33
authored
Ara 15, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rhbz#1283420: cairo text + xrender bodge
Change-Id: I926881bcfa4911f3d7f4899711be44a2f6d82026
üst
98f0e0ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
x11cairotextrender.cxx
vcl/unx/generic/gdi/x11cairotextrender.cxx
+18
-0
No files found.
vcl/unx/generic/gdi/x11cairotextrender.cxx
Dosyayı görüntüle @
1d18db33
...
...
@@ -42,6 +42,10 @@ struct _XRegion
BOX
extents
;
};
#if CAIRO_VERSION < CAIRO_VERSION_ENCODE(1, 10, 0)
# define CAIRO_OPERATOR_DIFFERENCE (static_cast<cairo_operator_t>(23))
#endif
X11CairoTextRender
::
X11CairoTextRender
(
X11SalGraphics
&
rParent
)
:
mrParent
(
rParent
)
{
...
...
@@ -78,6 +82,20 @@ cairo_t* X11CairoTextRender::getCairoContext()
cairo_t
*
cr
=
cairo_create
(
surface
);
cairo_surface_destroy
(
surface
);
//rhbz#1283420 bodge to draw and undraw something which has the side effect
//of making the mysterious xrender related problem go away
if
(
cairo_version
()
>=
CAIRO_VERSION_ENCODE
(
1
,
10
,
0
))
{
cairo_save
(
cr
);
cairo_set_source_rgb
(
cr
,
1.0
,
1.0
,
1.0
);
cairo_set_operator
(
cr
,
CAIRO_OPERATOR_DIFFERENCE
);
cairo_rectangle
(
cr
,
0
,
0
,
1
,
1
);
cairo_fill_preserve
(
cr
);
cairo_fill
(
cr
);
cairo_restore
(
cr
);
}
return
cr
;
}
...
...
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