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/PositionCache.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/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index bd27783c9..08ecee10a 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -51,7 +51,7 @@ public: // Wrapped line support int widthLine; int lines; - int wrapIndent; // In pixels + XYPOSITION wrapIndent; // In pixels LineLayout(int maxLineLength_); virtual ~LineLayout(); |