mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 23:31:55 -08:00
(x_draw_hollow_cursor): Delay obtaining the frame's DC to avoid
returning without releasing it.
This commit is contained in:
parent
3e27fa1f83
commit
988646fc79
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue