aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.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/ViewStyle.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/ViewStyle.h')
-rw-r--r--src/ViewStyle.h2
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;