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/ViewStyle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ViewStyle.h') 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; -- cgit v1.2.3