diff options
author | Neil <nyamatongwe@gmail.com> | 2020-06-10 13:00:05 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-06-10 13:00:05 +1000 |
commit | 0b9c12bf9cc211c30a40b13d7ba72dbba5328369 (patch) | |
tree | fd85a6039819158a325b5b9f2a881434d6a9fdbf /src/Editor.h | |
parent | 6516d81f0ad2574e49732c0def87d19c5a23ddeb (diff) | |
download | scintilla-mirror-0b9c12bf9cc211c30a40b13d7ba72dbba5328369.tar.gz |
Feature [feature-requests:1355]. Round instead of truncating for SCI_TEXTWIDTH.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.h b/src/Editor.h index 80203d319..dda14c311 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -388,7 +388,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void RefreshPixMaps(Surface *surfaceWindow); void Paint(Surface *surfaceWindow, PRectangle rcArea); Sci::Position FormatRange(bool draw, const Sci_RangeToFormat *pfr); - int TextWidth(int style, const char *text); + long TextWidth(uptr_t style, const char *text); virtual void SetVerticalScrollPos() = 0; virtual void SetHorizontalScrollPos() = 0; |