From 6c19b2c413c103111327394e785267530f1deb3c Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 23 Nov 2001 19:12:28 +0000 Subject: [PATCH] Glenn Maynard's IMM cursor position fix [originally from svn r1405] --- 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);