changeset 83612:e224be42ac30

(x_output): Remove foreground_pixel and background_pixel. (w32_clear_rect, w32_clear_area): Use background from frame.
author Jason Rumney <jasonr@gnu.org>
date Thu, 17 May 2007 00:39:22 +0000
parents a5651b79b31b
children 71c1ea291671
files src/w32term.h
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.h	Thu May 17 00:17:06 2007 +0000
+++ b/src/w32term.h	Thu May 17 00:39:22 2007 +0000
@@ -275,8 +275,10 @@
    diffs between X and w32 code.  */
 struct x_output
 {
+#if 0 /* These are also defined in struct frame.  Use that instead.  */
   PIX_TYPE background_pixel;
   PIX_TYPE foreground_pixel;
+#endif
 
   /* Keep track of focus.  May be EXPLICIT if we received a FocusIn for this
      frame, or IMPLICIT if we received an EnterNotify.
@@ -587,10 +589,10 @@
 }
 
 #define w32_clear_rect(f,hdc,lprect) \
-w32_fill_rect (f,hdc,f->output_data.x->background_pixel,lprect)
+  w32_fill_rect (f, hdc, FRAME_BACKGROUND_PIXEL (f), lprect)
 
 #define w32_clear_area(f,hdc,px,py,nx,ny) \
-w32_fill_area (f,hdc,f->output_data.x->background_pixel,px,py,nx,ny)
+  w32_fill_area (f, hdc, FRAME_BACKGROUND_PIXEL (f), px, py, nx, ny)
 
 extern struct font_info *w32_load_font ();
 extern void w32_unload_font ();