diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-22 17:21:20 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-22 17:21:20 +1100 |
commit | 0035079b6cf849dc5e2ae8face51fcfb99853efa (patch) | |
tree | aae706048fdadf44ec52a67882309fe8f77e5fd0 /src/EditView.cxx | |
parent | c6abfabd40bdec8adca1b6f534e56a5602ecb993 (diff) | |
download | scintilla-mirror-0035079b6cf849dc5e2ae8face51fcfb99853efa.tar.gz |
Use XYPOSITION for xStart parameter as it is only passed as XYPOSITION.
Diffstat (limited to 'src/EditView.cxx')
-rw-r--r-- | src/EditView.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index fd1baf143..d8c4e45fe 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -1621,7 +1621,7 @@ void EditView::DrawBackground(Surface *surface, const EditModel &model, const Vi bool inIndentation = subLine == 0; // Do not handle indentation except on first subline. const XYACCUMULATOR subLineStart = ll->positions[lineRange.start]; // Does not take margin into account but not significant - const int xStartVisible = static_cast<int>(subLineStart)-xStart; + const XYPOSITION xStartVisible = static_cast<XYPOSITION>(subLineStart-xStart); BreakFinder bfBack(ll, &model.sel, lineRange, posLineStart, xStartVisible, selBackDrawn, model.pdoc, &model.reprs, nullptr); @@ -1837,7 +1837,7 @@ void EditView::DrawForeground(Surface *surface, const EditModel &model, const Vi const XYPOSITION indentWidth = model.pdoc->IndentSize() * vsDraw.spaceWidth; // Does not take margin into account but not significant - const int xStartVisible = static_cast<int>(subLineStart)-xStart; + const XYPOSITION xStartVisible = static_cast<XYPOSITION>(subLineStart-xStart); // Foreground drawing loop BreakFinder bfFore(ll, &model.sel, lineRange, posLineStart, xStartVisible, |