diff options
author | Marko Njezic <unknown> | 2012-01-18 21:53:42 +0100 |
---|---|---|
committer | Marko Njezic <unknown> | 2012-01-18 21:53:42 +0100 |
commit | 4d0bdd15b57bff55cfcc58eb4ab91ccdf55d1c51 (patch) | |
tree | 10f4d2a8642d7c9c8b2d801591184714a5fe5a87 /src/Editor.h | |
parent | f68be5f8dda0925786c1130f1ed2da9f7bbc2e6c (diff) | |
download | scintilla-mirror-4d0bdd15b57bff55cfcc58eb4ab91ccdf55d1c51.tar.gz |
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.
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 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; |