aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2000-12-01 19:47:36 +0000
committerJason Rumney2000-12-01 19:47:36 +0000
commite4a5241280d674124e9dc9cc23d37c1472331641 (patch)
tree5f73b4033a05f04825551b610f46397e735e0303 /src
parent4d177746fa61dd10f0e057459aa524702a1183b4 (diff)
downloademacs-e4a5241280d674124e9dc9cc23d37c1472331641.tar.gz
emacs-e4a5241280d674124e9dc9cc23d37c1472331641.zip
(x_draw_vertical_border): Fix call to w32_fill_rect.
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 09f0f1afd71..3e9a731fdb2 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -524,8 +524,15 @@ w32_clear_window (f)
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
@@ -640,7 +647,7 @@ x_draw_vertical_border (w)
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}