vte r2073 - in trunk: . src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2073 - in trunk: . src
- Date: Fri, 27 Jun 2008 19:05:10 +0000 (UTC)
Author: chpe
Date: Fri Jun 27 19:05:10 2008
New Revision: 2073
URL: http://svn.gnome.org/viewvc/vte?rev=2073&view=rev
Log:
Bug 399744 â Hide more font-aa implementation details
Modified:
trunk/ChangeLog
trunk/src/vtexft.c
Modified: trunk/src/vtexft.c
==============================================================================
--- trunk/src/vtexft.c (original)
+++ trunk/src/vtexft.c Fri Jun 27 19:05:10 2008
@@ -139,6 +139,16 @@
{
struct _vte_xft_font *font, *old;
GPtrArray *patterns;
+ Display *dpy;
+ int event_base, error_base;
+
+ /* Don't enable anti-aliasing unless the XRender extension is available */
+ dpy = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (widget));
+ if (antialias == VTE_ANTI_ALIAS_USE_DEFAULT &&
+ (!XRenderQueryExtension (dpy, &event_base, &error_base) ||
+ !XRenderFindVisualFormat (dpy, DefaultVisual (dpy, DefaultScreen (dpy))))) {
+ antialias = VTE_ANTI_ALIAS_FORCE_DISABLE;
+ }
patterns = g_ptr_array_new ();
if (!_vte_fc_patterns_from_pango_font_desc (widget, fontdesc, antialias,
@@ -149,7 +159,7 @@
font = g_slice_new (struct _vte_xft_font);
font->ref = 1;
- font->display = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (widget));
+ font->display = dpy;
font->patterns = patterns;
font->last_pattern = 0;
font->have_metrics = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]