diff options
| author | Jason Rumney | 2000-12-21 11:06:32 +0000 |
|---|---|---|
| committer | Jason Rumney | 2000-12-21 11:06:32 +0000 |
| commit | 988646fc79017c19589767a424a0210324f68df7 (patch) | |
| tree | 162460c5cad4addeb982b7c60559a4dd7e22a083 /src | |
| parent | 3e27fa1f8369e7c89eb4a15c98fab2870caee9d3 (diff) | |
| download | emacs-988646fc79017c19589767a424a0210324f68df7.tar.gz emacs-988646fc79017c19589767a424a0210324f68df7.zip | |
(x_draw_hollow_cursor): Delay obtaining the frame's DC to avoid
returning without releasing it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
| 8741 | struct glyph_row *row; | 8741 | struct glyph_row *row; |
| 8742 | { | 8742 | { |
| 8743 | struct frame *f = XFRAME (WINDOW_FRAME (w)); | 8743 | struct frame *f = XFRAME (WINDOW_FRAME (w)); |
| 8744 | HDC hdc = get_frame_dc (f); | 8744 | HDC hdc; |
| 8745 | RECT rect; | 8745 | RECT rect; |
| 8746 | int wd; | 8746 | int wd; |
| 8747 | struct glyph *cursor_glyph; | 8747 | struct glyph *cursor_glyph; |
| @@ -8770,7 +8770,7 @@ x_draw_hollow_cursor (w, row) | |||
| 8770 | wd = min (CANON_X_UNIT (f), wd); | 8770 | wd = min (CANON_X_UNIT (f), wd); |
| 8771 | 8771 | ||
| 8772 | rect.right = rect.left + wd; | 8772 | rect.right = rect.left + wd; |
| 8773 | 8773 | hdc = get_frame_dc (f); | |
| 8774 | FrameRect (hdc, &rect, hb); | 8774 | FrameRect (hdc, &rect, hb); |
| 8775 | DeleteObject (hb); | 8775 | DeleteObject (hb); |
| 8776 | 8776 | ||