mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
richedit: Removed redundant variable ptLastSplittableRun.
This commit is contained in:
parent
dfa80b35b0
commit
15251ad84b
@ -414,7 +414,6 @@ typedef struct tagME_WrapContext
|
||||
ME_DisplayItem *pRowStart;
|
||||
|
||||
ME_DisplayItem *pLastSplittableRun;
|
||||
POINT ptLastSplittableRun;
|
||||
} ME_WrapContext;
|
||||
|
||||
#endif
|
||||
|
@ -271,7 +271,7 @@ static ME_DisplayItem *ME_SplitByBacktracking(ME_WrapContext *wc, ME_DisplayItem
|
||||
{
|
||||
if (wc->pLastSplittableRun->member.run.nFlags & (MERF_GRAPHICS|MERF_TAB))
|
||||
{
|
||||
wc->pt = wc->ptLastSplittableRun;
|
||||
wc->pt = wc->pLastSplittableRun->member.run.pt;
|
||||
return wc->pLastSplittableRun;
|
||||
}
|
||||
else if (wc->pLastSplittableRun->member.run.nFlags & MERF_SPLITTABLE)
|
||||
@ -299,7 +299,7 @@ static ME_DisplayItem *ME_SplitByBacktracking(ME_WrapContext *wc, ME_DisplayItem
|
||||
else
|
||||
{
|
||||
/* restart from the first run beginning with spaces */
|
||||
wc->pt = wc->ptLastSplittableRun;
|
||||
wc->pt = wc->pLastSplittableRun->member.run.pt;
|
||||
return wc->pLastSplittableRun;
|
||||
}
|
||||
}
|
||||
@ -451,7 +451,6 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p)
|
||||
|| ((run->nFlags & (MERF_GRAPHICS|MERF_TAB)) && (p != wc->pRowStart)))
|
||||
{
|
||||
wc->pLastSplittableRun = p;
|
||||
wc->ptLastSplittableRun = wc->pt;
|
||||
}
|
||||
wc->pt.x += run->nWidth;
|
||||
return p->next;
|
||||
|
Loading…
Reference in New Issue
Block a user