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:
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 */
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user