1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-11 08:08:06 -05:00

Glenn Maynard's IMM cursor position fix

[originally from svn r1405]
This commit is contained in:
Simon Tatham 2001-11-23 19:12:28 +00:00
parent 2a730c9865
commit 6c19b2c413

View File

@ -2317,8 +2317,8 @@ void sys_cursor(int x, int y)
/* we should have the IMM functions */
hIMC = ImmGetContext(hwnd);
cf.dwStyle = CFS_POINT;
cf.ptCurrentPos.x = x * font_width;
cf.ptCurrentPos.y = y * font_height;
cf.ptCurrentPos.x = x * font_width + offset_width;
cf.ptCurrentPos.y = y * font_height + offset_height;
ImmSetCompositionWindow(hIMC, &cf);
ImmReleaseContext(hwnd, hIMC);