Mercurial > emacs
comparison src/w32term.c @ 34093:d554a3ac3039
(x_draw_vertical_border): Fix call to w32_fill_rect.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Fri, 01 Dec 2000 19:47:36 +0000 |
parents | 3488141db749 |
children | adfe753a8c4e |
comparison
equal
deleted
inserted
replaced
34092:6b258ad126d5 | 34093:d554a3ac3039 |
---|---|
522 FRAME_PTR f; | 522 FRAME_PTR f; |
523 { | 523 { |
524 RECT rect; | 524 RECT rect; |
525 HDC hdc = get_frame_dc (f); | 525 HDC hdc = get_frame_dc (f); |
526 | 526 |
527 GetClientRect (FRAME_W32_WINDOW (f), &rect); | 527 /* Under certain conditions, this can be called at startup with |
528 w32_clear_rect (f, hdc, &rect); | 528 a console frame pointer before the GUI frame is created. An HDC |
529 of 0 indicates this. */ | |
530 if (hdc) | |
531 { | |
532 GetClientRect (FRAME_W32_WINDOW (f), &rect); | |
533 w32_clear_rect (f, hdc, &rect); | |
534 } | |
535 | |
529 release_frame_dc (f, hdc); | 536 release_frame_dc (f, hdc); |
530 } | 537 } |
531 | 538 |
532 | 539 |
533 /*********************************************************************** | 540 /*********************************************************************** |
638 r.left = r.right + FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f); | 645 r.left = r.right + FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f); |
639 r.right = r.left + 1; | 646 r.right = r.left + 1; |
640 r.bottom -= 1; | 647 r.bottom -= 1; |
641 | 648 |
642 hdc = get_frame_dc (f); | 649 hdc = get_frame_dc (f); |
643 w32_fill_rect (f, hdc, FRAME_FOREGROUND_PIXEL (f), r); | 650 w32_fill_rect (f, hdc, FRAME_FOREGROUND_PIXEL (f), &r); |
644 release_frame_dc (f, hdc); | 651 release_frame_dc (f, hdc); |
645 } | 652 } |
646 } | 653 } |
647 | 654 |
648 | 655 |