Glenn Maynard's IMM cursor position fix
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 23 Nov 2001 19:12:28 +0000 (19:12 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 23 Nov 2001 19:12:28 +0000 (19:12 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@1405 cda61777-01e9-0310-a592-d414129be87e

window.c

index f0bbc7c..58eb12b 100644 (file)
--- 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);