[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: white dots on black background, mac OSX
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: white dots on black background, mac OSX |
Date: |
Sat, 11 Jun 2005 13:43:47 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Fri, 10 Jun 2005 14:11:22 -0400, Gilbert Harman <address@hidden> said:
> I like to use a black background with white text in emacs, but over
> time annoying little white dots appear. I can use ^l to get rid of
> them for a while, but they come back. So often I end up using a
> white background with black text.
Let me ask some questions.
* How did you specify background/foreground colors?
* What is your font setting? Is mac-allow-anti-aliasing enabled?
* Do you have any particular procedures to reproduce the problem?
* Does the following patch make any difference?
YAMAMOTO Mitsuharu
address@hidden
Index: src/macterm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/macterm.c,v
retrieving revision 1.117
diff -c -r1.117 macterm.c
*** src/macterm.c 6 Jun 2005 20:23:56 -0000 1.117
--- src/macterm.c 11 Jun 2005 04:25:08 -0000
***************
*** 1996,2028 ****
mac_compute_glyph_string_overhangs (s)
struct glyph_string *s;
{
! Rect r;
! MacFontStruct *font = s->font;
!
! TextFont (font->mac_fontnum);
! TextSize (font->mac_fontsize);
! TextFace (font->mac_fontface);
!
! if (s->two_byte_p)
! QDTextBounds (s->nchars * 2, (char *)s->char2b, &r);
! else
{
! int i;
! char *buf = xmalloc (s->nchars);
! if (buf == NULL)
! SetRect (&r, 0, 0, 0, 0);
else
{
! for (i = 0; i < s->nchars; ++i)
! buf[i] = s->char2b[i].byte2;
! QDTextBounds (s->nchars, buf, &r);
! xfree (buf);
}
- }
! s->right_overhang = r.right > s->width ? r.right - s->width : 0;
! s->left_overhang = r.left < 0 ? -r.left : 0;
}
--- 1996,2032 ----
mac_compute_glyph_string_overhangs (s)
struct glyph_string *s;
{
! if (s->cmp == NULL
! && s->first_glyph->type == CHAR_GLYPH)
{
! Rect r;
! MacFontStruct *font = s->font;
!
! TextFont (font->mac_fontnum);
! TextSize (font->mac_fontsize);
! TextFace (font->mac_fontface);
! if (s->two_byte_p)
! QDTextBounds (s->nchars * 2, (char *)s->char2b, &r);
else
{
! int i;
! char *buf = xmalloc (s->nchars);
!
! if (buf == NULL)
! SetRect (&r, 0, 0, 0, 0);
! else
! {
! for (i = 0; i < s->nchars; ++i)
! buf[i] = s->char2b[i].byte2;
! QDTextBounds (s->nchars, buf, &r);
! xfree (buf);
! }
}
! s->right_overhang = r.right > s->width ? r.right - s->width : 0;
! s->left_overhang = r.left < 0 ? -r.left : 0;
! }
}