aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Platform.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-26 16:36:29 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-26 16:36:29 +1100
commit7a3c73483c17da8f669fe3551ad274a02144486a (patch)
tree07402a7e1d2a83c0a1c44f843aba41615623c2c1 /src/Platform.h
parentf96ffc423d8af568c0f1dc066a4adbec54d49bdb (diff)
downloadscintilla-mirror-7a3c73483c17da8f669fe3551ad274a02144486a.tar.gz
Bug [#2224]. Switch XYPOSITION to double so it has more precision to fix
problems with very long documents. Fixes uneven line heights on Cocoa after around 1.1 million lines.
Diffstat (limited to 'src/Platform.h')
-rw-r--r--src/Platform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Platform.h b/src/Platform.h
index 8898e66f9..98e6440aa 100644
--- a/src/Platform.h
+++ b/src/Platform.h
@@ -96,7 +96,7 @@ constexpr const char *localeNameDefault = "en-us";
struct FontParameters {
const char *faceName;
- float size;
+ XYPOSITION size;
int weight;
bool italic;
int extraFontFlag;
@@ -106,7 +106,7 @@ struct FontParameters {
constexpr FontParameters(
const char *faceName_,
- float size_=10,
+ XYPOSITION size_=10,
int weight_=400,
bool italic_=false,
int extraFontFlag_=0,