From: Jason Rumney Date: Thu, 21 Dec 2000 11:06:32 +0000 (+0000) Subject: (x_draw_hollow_cursor): Delay obtaining the frame's DC to avoid X-Git-Tag: emacs-pretest-21.0.95~351 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=988646fc79017c19589767a424a0210324f68df7;p=emacs.git (x_draw_hollow_cursor): Delay obtaining the frame's DC to avoid returning without releasing it. --- diff --git a/src/w32term.c b/src/w32term.c index e3ee34c9444..cf25b7e1080 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -8741,7 +8741,7 @@ x_draw_hollow_cursor (w, row) 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 @@ x_draw_hollow_cursor (w, row) wd = min (CANON_X_UNIT (f), wd); rect.right = rect.left + wd; - + hdc = get_frame_dc (f); FrameRect (hdc, &rect, hb); DeleteObject (hb);