1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

(x_draw_hollow_cursor): Delay obtaining the frame's DC to avoid

returning without releasing it.
This commit is contained in:
Jason Rumney 2000-12-21 11:06:32 +00:00
parent 3e27fa1f83
commit 988646fc79

View File

@ -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);