From 325e06d2c194b2ce0572bda1f7a387bdc99ff595 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Sat, 4 Feb 2006 17:00:18 +0100 Subject: [PATCH] riched20: Removed an unused parameter. --- dlls/riched20/editor.h | 2 +- dlls/riched20/run.c | 2 +- dlls/riched20/wrap.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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