From: simon Date: Fri, 23 Nov 2001 19:12:28 +0000 (+0000) Subject: Glenn Maynard's IMM cursor position fix X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/808d8218802d004d8a4a6f8818e4bfebdffcd0ee Glenn Maynard's IMM cursor position fix git-svn-id: svn://svn.tartarus.org/sgt/putty@1405 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/window.c b/window.c index f0bbc7c2..58eb12b0 100644 --- a/window.c +++ b/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);