aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorEli Zaretskii2001-01-29 12:36:52 +0000
committerEli Zaretskii2001-01-29 12:36:52 +0000
commitfccb8288473eb856cdb824162af27fb85e8ba614 (patch)
tree720d31399b5f2f0945c41c90dbb8555a526fe737 /src/w32term.c
parentd4ffda100dab1847208ccaae97f9c84bf184eefa (diff)
downloademacs-fccb8288473eb856cdb824162af27fb85e8ba614.tar.gz
emacs-fccb8288473eb856cdb824162af27fb85e8ba614.zip
(x_draw_row_bitmaps): Delay obtaining HDC to avoid returning without
releasing it.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 0d6f8c4bf20..6756cfa105f 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -898,7 +898,7 @@ x_draw_row_bitmaps (w, row)
898 enum bitmap_type bitmap; 898 enum bitmap_type bitmap;
899 struct face *face; 899 struct face *face;
900 int header_line_height = -1; 900 int header_line_height = -1;
901 HDC hdc = get_frame_dc (f); 901 HDC hdc;
902 902
903 xassert (interrupt_input_blocked); 903 xassert (interrupt_input_blocked);
904 904
@@ -922,6 +922,8 @@ x_draw_row_bitmaps (w, row)
922 else 922 else
923 bitmap = NO_BITMAP; 923 bitmap = NO_BITMAP;
924 924
925 hdc = get_frame_dc (f);
926
925 /* Clear flags area if no bitmap to draw or if bitmap doesn't fill 927 /* Clear flags area if no bitmap to draw or if bitmap doesn't fill
926 the flags area. */ 928 the flags area. */
927 if (bitmap == NO_BITMAP 929 if (bitmap == NO_BITMAP