diff options
| author | Jason Rumney | 2007-05-17 00:39:22 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-05-17 00:39:22 +0000 |
| commit | 9e75e167a18a44cdd9648e43192b7a35459babd7 (patch) | |
| tree | 826c9c602033607c4fa6986daf5d79bc22bb8ed9 /src | |
| parent | 90843190c51b9151b26cd61b9da89f654fe0e8c4 (diff) | |
| download | emacs-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.h | 6 |
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. */ |
| 276 | struct x_output | 276 | struct 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) \ |
| 590 | w32_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) \ |
| 593 | w32_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 | ||
| 595 | extern struct font_info *w32_load_font (); | 597 | extern struct font_info *w32_load_font (); |
| 596 | extern void w32_unload_font (); | 598 | extern void w32_unload_font (); |