diff options
author | nyamatongwe <devnull@localhost> | 2011-12-09 15:04:05 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-12-09 15:04:05 +1100 |
commit | da039355e50595c3c55930b7c53bd653980c8bfe (patch) | |
tree | c6518cea9792d56ba645518957d30bdec021d672 /src/PositionCache.cxx | |
parent | 5ee69ffbe6c90487a34964103ea13082c8fda734 (diff) | |
download | scintilla-mirror-da039355e50595c3c55930b7c53bd653980c8bfe.tar.gz |
Fractional position support.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 614e6b8bf..759558e73 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -189,10 +189,10 @@ void LineLayout::RestoreBracesHighlight(Range rangeLine, Position braces[], bool xHighlightGuide = 0; } -int LineLayout::FindBefore(int x, int lower, int upper) const { +int LineLayout::FindBefore(XYPOSITION x, int lower, int upper) const { do { int middle = (upper + lower + 1) / 2; // Round high - int posMiddle = positions[middle]; + XYPOSITION posMiddle = positions[middle]; if (x < posMiddle) { upper = middle - 1; } else { |