]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_output): Remove foreground_pixel and background_pixel.
authorJason Rumney <jasonr@gnu.org>
Thu, 17 May 2007 00:39:22 +0000 (00:39 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 17 May 2007 00:39:22 +0000 (00:39 +0000)
(w32_clear_rect, w32_clear_area): Use background from frame.

src/w32term.h

index a335e1cf0f2b4d82ebd43aa10d75fc74fdac54ca..46d9614e4717e8359486811b650e2c3561a56c04 100644 (file)
@@ -275,8 +275,10 @@ extern void w32_find_ccl_program();
    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 @@ extern void w32_clear_window ();
 }
 
 #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 ();