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/ViewStyle.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/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 4ee7f2a3e..3803a6cb2 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -71,7 +71,7 @@ public: int lineHeight; unsigned int maxAscent; unsigned int maxDescent; - unsigned int aveCharWidth; + XYPOSITION aveCharWidth; XYPOSITION spaceWidth; bool selforeset; ColourDesired selforeground; |