diff options
Diffstat (limited to 'scintilla/src')
-rw-r--r-- | scintilla/src/PositionCache.cxx | 4 | ||||
-rw-r--r-- | scintilla/src/PositionCache.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scintilla/src/PositionCache.cxx b/scintilla/src/PositionCache.cxx index 002dd85..b6f8144 100644 --- a/scintilla/src/PositionCache.cxx +++ b/scintilla/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 {
diff --git a/scintilla/src/PositionCache.h b/scintilla/src/PositionCache.h index 3330a7a..bb803d6 100644 --- a/scintilla/src/PositionCache.h +++ b/scintilla/src/PositionCache.h @@ -65,7 +65,7 @@ public: void SetBracesHighlight(Range rangeLine, Position braces[],
char bracesMatchStyle, int xHighlight, bool ignoreStyle);
void RestoreBracesHighlight(Range rangeLine, Position braces[], bool ignoreStyle);
- int FindBefore(int x, int lower, int upper) const;
+ int FindBefore(XYPOSITION x, int lower, int upper) const;
int EndLineStyle() const;
};
|