Bug 536089 - Make nsIMM32Handler.cpp compile on new mingw, r=roc

This commit is contained in:
Jacek Caban 2009-12-29 14:20:42 -05:00
Родитель cf1dc4e091
Коммит 15e6443b74
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1650,8 +1650,8 @@ nsIMM32Handler::OnMouseEvent(nsWindow* aWindow, LPARAM lParam, int aAction)
// char : JCH1|JCH2|JCH3
// offset: 0011 1122 2233
// positioning: 2301 2301 2301
nsIntRect cursorInTopLevel;
ResolveIMECaretPos(aWindow, nsIntRect(cursor, nsIntSize(0, 0)),
nsIntRect cursorInTopLevel, cursorRect(cursor, nsIntSize(0, 0));
ResolveIMECaretPos(aWindow, cursorRect,
aWindow->GetTopLevelWindow(PR_FALSE), cursorInTopLevel);
PRInt32 cursorXInChar = cursorInTopLevel.x - charAtPt.mReply.mRect.x;
int positioning = cursorXInChar * 4 / charAtPt.mReply.mRect.width;