From fccb8288473eb856cdb824162af27fb85e8ba614 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 29 Jan 2001 12:36:52 +0000 Subject: [PATCH] (x_draw_row_bitmaps): Delay obtaining HDC to avoid returning without releasing it. --- src/ChangeLog | 5 +++++ src/w32term.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 82003628df..54e6e6f0c1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-01-29 Jason Rumney + + w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid + returning without releasing it. + 2001-01-29 Kenichi Handa * w32fns.c (w32_font_match): Allocate three more bytes to regex diff --git a/src/w32term.c b/src/w32term.c index 0d6f8c4bf2..6756cfa105 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -898,7 +898,7 @@ x_draw_row_bitmaps (w, row) enum bitmap_type bitmap; struct face *face; int header_line_height = -1; - HDC hdc = get_frame_dc (f); + HDC hdc; xassert (interrupt_input_blocked); @@ -922,6 +922,8 @@ x_draw_row_bitmaps (w, row) else bitmap = NO_BITMAP; + hdc = get_frame_dc (f); + /* Clear flags area if no bitmap to draw or if bitmap doesn't fill the flags area. */ if (bitmap == NO_BITMAP -- 2.20.1