Module: wine Branch: master Commit: 41dd421222dee0fb727ba71070c0a9c1b1f6300b URL: http://source.winehq.org/git/wine.git/?a=commit;h=41dd421222dee0fb727ba71070...
Author: Huw Davies huw@codeweavers.com Date: Mon Feb 25 12:59:25 2013 +0000
riched20: Return a BOOL that indicates whether the hit is exact.
---
dlls/riched20/caret.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index 0905700..5556c8e 100644 --- a/dlls/riched20/caret.c +++ b/dlls/riched20/caret.c @@ -1177,7 +1177,7 @@ void ME_MouseMove(ME_TextEditor *editor, int x, int y) ME_SendSelChange(editor); }
-static void ME_FindRunInRow(ME_TextEditor *editor, ME_DisplayItem *pRow, +static BOOL ME_FindRunInRow(ME_TextEditor *editor, ME_DisplayItem *pRow, int x, ME_Cursor *cursor, int *pbCaretAtEnd) { ME_DisplayItem *pNext, *pLastRun; @@ -1192,7 +1192,7 @@ static void ME_FindRunInRow(ME_TextEditor *editor, ME_DisplayItem *pRow, { cursor->pRun = pNext; cursor->pPara = ME_GetParagraph( cursor->pRun ); - return; + return FALSE; } if (x >= run_x && x < run_x+width) { @@ -1202,7 +1202,7 @@ static void ME_FindRunInRow(ME_TextEditor *editor, ME_DisplayItem *pRow, cursor->nOffset = ch; cursor->pRun = pNext; cursor->pPara = ME_GetParagraph( cursor->pRun ); - return; + return TRUE; } } pLastRun = pNext; @@ -1218,7 +1218,7 @@ static void ME_FindRunInRow(ME_TextEditor *editor, ME_DisplayItem *pRow, cursor->pRun = pLastRun;
cursor->pPara = ME_GetParagraph( cursor->pRun ); - return; + return FALSE; }
static int ME_GetXForArrow(ME_TextEditor *editor, ME_Cursor *pCursor)