[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch for crash in XFT_JHD_BRANCH
From: |
Michael Teske |
Subject: |
Re: patch for crash in XFT_JHD_BRANCH |
Date: |
Tue, 26 Jul 2005 13:11:23 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
Michael Teske wrote:
Jan D. wrote:
Thanks. I'll install this next time I get some time for the XFT
branch. May take a while though.
No problem, it doesn't crash anymore, that's enough for me ;-)
Without xft, fonts really become unreadable on a recent LCD IMHO...
One question left, though: The cursor is just a rectangle of the font
color now, and not inverse like in my 21.4 emacs without xft. Do you (or
anyone else here) know where I have to look if I'd want to try to fix this?
Ok, i found it by myself. The complete cvs diff output is attached, for
anyone interested.
Greetings,
Michael
Index: xfaces.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xfaces.c,v
retrieving revision 1.316.2.2
diff -c -r1.316.2.2 xfaces.c
*** xfaces.c 6 Jun 2005 08:36:36 -0000 1.316.2.2
--- xfaces.c 26 Jul 2005 11:08:56 -0000
***************
*** 5227,5233 ****
XQueryColors (FRAME_X_DISPLAY (f), FRAME_X_DISPLAY_INFO (f)->cmap,
colors, 2);
! face->xft_fg.color.alpha = face->xft_fg.color.alpha = 0xffff;
face->xft_fg.color.red = colors[0].red;
face->xft_fg.color.green = colors[0].green;
face->xft_fg.color.blue = colors[0].blue;
--- 5227,5233 ----
XQueryColors (FRAME_X_DISPLAY (f), FRAME_X_DISPLAY_INFO (f)->cmap,
colors, 2);
! face->xft_fg.color.alpha = face->xft_fg.color.alpha =
face->xft_bg.color.alpha = 0xffff;
face->xft_fg.color.red = colors[0].red;
face->xft_fg.color.green = colors[0].green;
face->xft_fg.color.blue = colors[0].blue;
***************
*** 7177,7182 ****
--- 7177,7183 ----
{
bcopy (base_face, face, sizeof *face);
face->gc = 0;
+ face->xft_draw = NULL;
/* Don't try to free the colors copied bitwise from BASE_FACE. */
face->colors_copied_bitwise_p = 1;
Index: xterm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xterm.c,v
retrieving revision 1.861.2.2
diff -c -r1.861.2.2 xterm.c
*** xterm.c 6 Jun 2005 08:36:36 -0000 1.861.2.2
--- xterm.c 26 Jul 2005 11:08:58 -0000
***************
*** 1360,1366 ****
for (i = 0; i < s->nchars; ++i)
ch[i] = s->char2b[i].byte2 | (s->char2b[i].byte1 << 8);
XftDrawString16 (s->face->xft_draw,
! &s->face->xft_fg,
s->face->font,
x,
s->ybase - boff,
--- 1360,1366 ----
for (i = 0; i < s->nchars; ++i)
ch[i] = s->char2b[i].byte2 | (s->char2b[i].byte1 << 8);
XftDrawString16 (s->face->xft_draw,
! s->hl == DRAW_CURSOR ? &s->face->xft_bg :
&s->face->xft_fg,
s->face->font,
x,
s->ybase - boff,
***************
*** 1369,1375 ****
}
else
XftDrawString8 (s->face->xft_draw,
! &s->face->xft_fg,
s->face->font,
x,
s->ybase - boff,
--- 1369,1375 ----
}
else
XftDrawString8 (s->face->xft_draw,
! s->hl == DRAW_CURSOR ? &s->face->xft_bg :
&s->face->xft_fg,
s->face->font,
x,
s->ybase - boff,