Re: Background Color problems in New frames

Andrew Choi <[email protected]> Fri, 14 Jun 2002 21:10:04 -0600
Newsgroups gmane.emacs.macintosh.user
Message-ID <[email protected]>
> I've only been using Emacs 21 or Mac OS X for a little while, but I'm 
> pretty far along in hacking it.  However, I'm having some trouble 
> keeping my background color correct.  The behavior I'm seeing is that 
> the background color for areas without text is white, regardless of what 
> I specify in the default.  However the background color for areas with 
> text is what I specify.  I'm not sure whether it's emacs 21 or specific 
> to the mac.  It seems to only happen in newly created frames, and it 
> goes away if I specifically call (set-background-color)
> 
> Here's the code I'm using to specify the frame parameters:
> 
> (cond ((eq window-system 'mac)
>         (setq default-frame-alist
> 	     '((mouse-color . "midnightblue")
> 	       (foreground-color . "midnightblue")
> 	       (background-color . "antiquewhite1")))
>         ))
> 
> Thanks for any help,
> -Steven

Hi Steven,

Please try adding the line

  XClearWindow (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f));

just before the line

  expose_frame (f, 0, 0, 0, 0);

in the function do_window_update in the file macterm.c and see if that
solves the problem.

Andrew.


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink