From 0b9c12bf9cc211c30a40b13d7ba72dbba5328369 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 10 Jun 2020 13:00:05 +1000 Subject: Feature [feature-requests:1355]. Round instead of truncating for SCI_TEXTWIDTH. --- src/Editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.h') 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; -- cgit v1.2.3