diff --git a/dlls/riched20/editor.h b/dlls/riched20/editor.h index f3d9b07c7da..f452870eef7 100644 --- a/dlls/riched20/editor.h +++ b/dlls/riched20/editor.h @@ -116,7 +116,7 @@ ME_DisplayItem *ME_InsertRunAtCursor(ME_TextEditor *editor, ME_Cursor *cursor, void ME_CheckCharOffsets(ME_TextEditor *editor); void ME_PropagateCharOffset(ME_DisplayItem *p, int shift); void ME_GetGraphicsSize(ME_TextEditor *editor, ME_Run *run, SIZE *pSize); -int ME_CharFromPoint(ME_TextEditor *editor, int cx, ME_Paragraph *para, ME_Run *run); +int ME_CharFromPoint(ME_TextEditor *editor, int cx, ME_Run *run); /* this one accounts for 1/2 char tolerance */ int ME_CharFromPointCursor(ME_TextEditor *editor, int cx, ME_Run *run); int ME_PointFromChar(ME_TextEditor *editor, ME_Run *pRun, int nOffset); diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c index 13a7204f42b..473078471e7 100644 --- a/dlls/riched20/run.c +++ b/dlls/riched20/run.c @@ -381,7 +381,7 @@ void ME_GetGraphicsSize(ME_TextEditor *editor, ME_Run *run, SIZE *pSize) pSize->cy = 64; } -int ME_CharFromPoint(ME_TextEditor *editor, int cx, ME_Paragraph *para, ME_Run *run) +int ME_CharFromPoint(ME_TextEditor *editor, int cx, ME_Run *run) { int fit = 0; HGDIOBJ hOldFont; diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c index f3d3e9d8cb9..4e27454a55d 100644 --- a/dlls/riched20/wrap.c +++ b/dlls/riched20/wrap.c @@ -168,7 +168,7 @@ static ME_DisplayItem *ME_SplitByBacktracking(ME_WrapContext *wc, ME_DisplayItem int i, idesp, len; ME_Run *run = &p->member.run; - idesp = i = ME_CharFromPoint(wc->context->editor, loc, &ME_GetParagraph(p)->member.para, run); + idesp = i = ME_CharFromPoint(wc->context->editor, loc, run); len = ME_StrVLen(run->strText); assert(len>0); assert(i