From 7568f336eaf9c0940ae546c3081be1894c5d025b Mon Sep 17 00:00:00 2001 From: Marko Njezic Date: Wed, 18 Jan 2012 21:53:42 +0100 Subject: Change wrapIndent, wrapAddIndent, aveCharWidth to support fractional values. This improves sub-pixel alignment of indented wrapped lines and sub-pixel positioning that uses aveCharWidth in calculations. Added type casts to certain places to make it clear that loss of precision occurs due to assignment of float to int. --- 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 90a109cc3..0923f4051 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -264,7 +264,7 @@ protected: // ScintillaBase subclass needs access to much of Editor int wrapVisualFlags; int wrapVisualFlagsLocation; int wrapVisualStartIndent; - int wrapAddIndent; // This will be added to initial indent of line + XYPOSITION wrapAddIndent; // This will be added to initial indent of line int wrapIndentMode; // SC_WRAPINDENT_FIXED, _SAME, _INDENT bool convertPastes; -- cgit v1.2.3