aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorMarko Njezic <devnull@localhost>2012-01-18 21:53:42 +0100
committerMarko Njezic <devnull@localhost>2012-01-18 21:53:42 +0100
commit7568f336eaf9c0940ae546c3081be1894c5d025b (patch)
tree92e25fafab1d5a673960662a46f61780c6a037e2 /src/PositionCache.h
parent5a2fc48080e71e790c147222ffdb209d64fe4bef (diff)
downloadscintilla-mirror-7568f336eaf9c0940ae546c3081be1894c5d025b.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.h2
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();