diff options
author | Patrik Nyblom <[email protected]> | 2012-07-27 16:19:10 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2012-08-14 15:04:43 +0200 |
commit | d75a3a80c8c27410fb5182117cca44481bac487f (patch) | |
tree | 2481fa8658dd8eaa0646a77c23468d838a276407 /erts/emulator | |
parent | 0c9d90f314f364e5b1301ec89d762baabc57c7aa (diff) | |
download | otp-d75a3a80c8c27410fb5182117cca44481bac487f.tar.gz otp-d75a3a80c8c27410fb5182117cca44481bac487f.tar.bz2 otp-d75a3a80c8c27410fb5182117cca44481bac487f.zip |
Teach caret to appear correctly after focus loss
Incorrect window was used to calculate x position.
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/drivers/win32/win_con.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/win32/win_con.c b/erts/emulator/drivers/win32/win_con.c index 6b45b92cbe..5df399aa5d 100644 --- a/erts/emulator/drivers/win32/win_con.c +++ b/erts/emulator/drivers/win32/win_con.c @@ -569,7 +569,7 @@ FrameWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) return 1; case WM_SETFOCUS : CreateCaret(hClientWnd, NULL, cxChar, cyChar); - SetCaretPos(GetXFromCurrentY(GetDC(hwnd),0,cur_x), (cur_y-iVscrollPos)*cyChar); + SetCaretPos(GetXFromCurrentY(GetDC(hClientWnd),iHscrollPos,cur_x), (cur_y-iVscrollPos)*cyChar); ShowCaret(hClientWnd); return 0; case WM_KILLFOCUS: |