From 808d8218802d004d8a4a6f8818e4bfebdffcd0ee Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 23 Nov 2001 19:12:28 +0000 Subject: [PATCH] Glenn Maynard's IMM cursor position fix git-svn-id: svn://svn.tartarus.org/sgt/putty@1405 cda61777-01e9-0310-a592-d414129be87e --- window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.11.0