diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-26 16:36:29 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-26 16:36:29 +1100 |
commit | 7a3c73483c17da8f669fe3551ad274a02144486a (patch) | |
tree | 07402a7e1d2a83c0a1c44f843aba41615623c2c1 /cocoa/QuartzTextLayout.h | |
parent | f96ffc423d8af568c0f1dc066a4adbec54d49bdb (diff) | |
download | scintilla-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 'cocoa/QuartzTextLayout.h')
-rw-r--r-- | cocoa/QuartzTextLayout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/QuartzTextLayout.h b/cocoa/QuartzTextLayout.h index 0c234fe39..1f7adc241 100644 --- a/cocoa/QuartzTextLayout.h +++ b/cocoa/QuartzTextLayout.h @@ -72,7 +72,7 @@ public: * @param gc The CGContext in which to draw the text. * @param x The x axis position to draw the baseline in the current CGContext. * @param y The y axis position to draw the baseline in the current CGContext. */ - void draw(CGContextRef gc, float x, float y) { + void draw(CGContextRef gc, double x, double y) { if (!mLine) return; |