diff options
Diffstat (limited to 'src/w32term.c')
| -rw-r--r-- | src/w32term.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c index 617492e189f..d3174c65bf0 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -151,6 +151,9 @@ HWND w32_system_caret_hwnd; | |||
| 151 | int w32_system_caret_height; | 151 | int w32_system_caret_height; |
| 152 | int w32_system_caret_x; | 152 | int w32_system_caret_x; |
| 153 | int w32_system_caret_y; | 153 | int w32_system_caret_y; |
| 154 | struct window *w32_system_caret_window; | ||
| 155 | int w32_system_caret_hdr_height; | ||
| 156 | int w32_system_caret_mode_height; | ||
| 154 | DWORD dwWindowsThreadId = 0; | 157 | DWORD dwWindowsThreadId = 0; |
| 155 | HANDLE hWindowsThread = NULL; | 158 | HANDLE hWindowsThread = NULL; |
| 156 | DWORD dwMainThreadId = 0; | 159 | DWORD dwMainThreadId = 0; |
| @@ -5328,6 +5331,9 @@ w32_draw_window_cursor (struct window *w, struct glyph_row *glyph_row, | |||
| 5328 | w32_system_caret_y | 5331 | w32_system_caret_y |
| 5329 | = (WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y) | 5332 | = (WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y) |
| 5330 | + glyph_row->ascent - w->phys_cursor_ascent); | 5333 | + glyph_row->ascent - w->phys_cursor_ascent); |
| 5334 | w32_system_caret_window = w; | ||
| 5335 | w32_system_caret_hdr_height = WINDOW_HEADER_LINE_HEIGHT (w); | ||
| 5336 | w32_system_caret_mode_height = WINDOW_MODE_LINE_HEIGHT (w); | ||
| 5331 | 5337 | ||
| 5332 | PostMessage (hwnd, WM_IME_STARTCOMPOSITION, 0, 0); | 5338 | PostMessage (hwnd, WM_IME_STARTCOMPOSITION, 0, 0); |
| 5333 | 5339 | ||