changeset 34779:94c3431a7fe2

(x_draw_hollow_cursor): Delay obtaining the frame's DC to avoid returning without releasing it.
author Jason Rumney <jasonr@gnu.org>
date Thu, 21 Dec 2000 11:06:32 +0000
parents 662601fb7a07
children 2d13cd63d492
files src/w32term.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32term.c	Thu Dec 21 11:05:33 2000 +0000
+++ b/src/w32term.c	Thu Dec 21 11:06:32 2000 +0000
@@ -8741,7 +8741,7 @@
      struct glyph_row *row;
 {
   struct frame *f = XFRAME (WINDOW_FRAME (w));
-  HDC hdc = get_frame_dc (f);
+  HDC hdc;
   RECT rect;
   int wd;
   struct glyph *cursor_glyph;
@@ -8770,7 +8770,7 @@
     wd = min (CANON_X_UNIT (f), wd);
 
   rect.right = rect.left + wd;
-
+  hdc = get_frame_dc (f);
   FrameRect (hdc, &rect, hb);
   DeleteObject (hb);