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