Mercurial > emacs
comparison src/w32term.c @ 63912:12f374b6c866
(w32_draw_vertical_window_border): Use foreground of
VERTICAL_BORDER_FACE_ID for vertical border line.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 02 Jul 2005 09:53:02 +0000 |
parents | 72c5011362ef |
children | a8fa7c632ee4 efa9e4606e7e |
comparison
equal
deleted
inserted
replaced
63911:954c9ade6e2b | 63912:12f374b6c866 |
---|---|
508 int x, y0, y1; | 508 int x, y0, y1; |
509 { | 509 { |
510 struct frame *f = XFRAME (WINDOW_FRAME (w)); | 510 struct frame *f = XFRAME (WINDOW_FRAME (w)); |
511 RECT r; | 511 RECT r; |
512 HDC hdc; | 512 HDC hdc; |
513 struct face *face; | |
513 | 514 |
514 r.left = x; | 515 r.left = x; |
515 r.right = x + 1; | 516 r.right = x + 1; |
516 r.top = y0; | 517 r.top = y0; |
517 r.bottom = y1; | 518 r.bottom = y1; |
518 | 519 |
519 hdc = get_frame_dc (f); | 520 hdc = get_frame_dc (f); |
520 w32_fill_rect (f, hdc, FRAME_FOREGROUND_PIXEL (f), &r); | 521 face = FACE_FROM_ID (f, VERTICAL_BORDER_FACE_ID); |
522 if (face) | |
523 w32_fill_rect (f, hdc, face->foreground, &r); | |
524 else | |
525 w32_fill_rect (f, hdc, FRAME_FOREGROUND_PIXEL (f), &r); | |
526 | |
521 release_frame_dc (f, hdc); | 527 release_frame_dc (f, hdc); |
522 } | 528 } |
523 | 529 |
524 | 530 |
525 /* End update of window W (which is equal to updated_window). | 531 /* End update of window W (which is equal to updated_window). |