diff options
author | nyamatongwe <unknown> | 2011-12-09 15:04:05 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-12-09 15:04:05 +1100 |
commit | 4afa55836bb269c649885d04e0fdc195632074da (patch) | |
tree | c5200343adc41a5421aac4df1d76d27655ba71cd /src/PositionCache.cxx | |
parent | a87633c0d931ead0d086c1f78b2f41090b3ee6fe (diff) | |
download | scintilla-mirror-4afa55836bb269c649885d04e0fdc195632074da.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 { |