mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 03:58:05 -05:00
Glenn Maynard's IMM cursor position fix
[originally from svn r1405]
This commit is contained in:
parent
2a730c9865
commit
6c19b2c413
4
window.c
4
window.c
@ -2317,8 +2317,8 @@ void sys_cursor(int x, int y)
|
|||||||
/* we should have the IMM functions */
|
/* we should have the IMM functions */
|
||||||
hIMC = ImmGetContext(hwnd);
|
hIMC = ImmGetContext(hwnd);
|
||||||
cf.dwStyle = CFS_POINT;
|
cf.dwStyle = CFS_POINT;
|
||||||
cf.ptCurrentPos.x = x * font_width;
|
cf.ptCurrentPos.x = x * font_width + offset_width;
|
||||||
cf.ptCurrentPos.y = y * font_height;
|
cf.ptCurrentPos.y = y * font_height + offset_height;
|
||||||
ImmSetCompositionWindow(hIMC, &cf);
|
ImmSetCompositionWindow(hIMC, &cf);
|
||||||
|
|
||||||
ImmReleaseContext(hwnd, hIMC);
|
ImmReleaseContext(hwnd, hIMC);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user