aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2007-05-17 00:39:22 +0000
committerJason Rumney2007-05-17 00:39:22 +0000
commit9e75e167a18a44cdd9648e43192b7a35459babd7 (patch)
tree826c9c602033607c4fa6986daf5d79bc22bb8ed9 /src
parent90843190c51b9151b26cd61b9da89f654fe0e8c4 (diff)
downloademacs-9e75e167a18a44cdd9648e43192b7a35459babd7.tar.gz
emacs-9e75e167a18a44cdd9648e43192b7a35459babd7.zip
(x_output): Remove foreground_pixel and background_pixel.
(w32_clear_rect, w32_clear_area): Use background from frame.
Diffstat (limited to 'src')
-rw-r--r--src/w32term.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/w32term.h b/src/w32term.h
index a335e1cf0f2..46d9614e471 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -275,8 +275,10 @@ extern void w32_find_ccl_program();
275 diffs between X and w32 code. */ 275 diffs between X and w32 code. */
276struct x_output 276struct x_output
277{ 277{
278#if 0 /* These are also defined in struct frame. Use that instead. */
278 PIX_TYPE background_pixel; 279 PIX_TYPE background_pixel;
279 PIX_TYPE foreground_pixel; 280 PIX_TYPE foreground_pixel;
281#endif
280 282
281 /* Keep track of focus. May be EXPLICIT if we received a FocusIn for this 283 /* Keep track of focus. May be EXPLICIT if we received a FocusIn for this
282 frame, or IMPLICIT if we received an EnterNotify. 284 frame, or IMPLICIT if we received an EnterNotify.
@@ -587,10 +589,10 @@ extern void w32_clear_window ();
587} 589}
588 590
589#define w32_clear_rect(f,hdc,lprect) \ 591#define w32_clear_rect(f,hdc,lprect) \
590w32_fill_rect (f,hdc,f->output_data.x->background_pixel,lprect) 592 w32_fill_rect (f, hdc, FRAME_BACKGROUND_PIXEL (f), lprect)
591 593
592#define w32_clear_area(f,hdc,px,py,nx,ny) \ 594#define w32_clear_area(f,hdc,px,py,nx,ny) \
593w32_fill_area (f,hdc,f->output_data.x->background_pixel,px,py,nx,ny) 595 w32_fill_area (f, hdc, FRAME_BACKGROUND_PIXEL (f), px, py, nx, ny)
594 596
595extern struct font_info *w32_load_font (); 597extern struct font_info *w32_load_font ();
596extern void w32_unload_font (); 598extern void w32_unload_font ();