diff options
author | nyamatongwe <devnull@localhost> | 2011-12-09 15:03:30 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-12-09 15:03:30 +1100 |
commit | 5ee69ffbe6c90487a34964103ea13082c8fda734 (patch) | |
tree | 99592c08e7fe3723ca304d46fc65b85ae15419ec | |
parent | 84e4e42007a88e350d01f1659d2eb38328dae925 (diff) | |
download | scintilla-mirror-5ee69ffbe6c90487a34964103ea13082c8fda734.tar.gz |
Allow fractional widths for single character strings.
-rw-r--r-- | gtk/PlatGTK.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index f1445afc2..b7ce38568 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -141,7 +141,7 @@ static void FontMutexUnlock() { // On GTK+ 1.x holds a GdkFont* but on GTK+ 2.x can hold a GdkFont* or a // PangoFontDescription*. class FontHandle { - int width[128]; + XYPOSITION width[128]; encodingType et; public: int ascent; @@ -168,8 +168,8 @@ public: width[i] = 0; } } - int CharWidth(unsigned char ch, encodingType et_) { - int w = 0; + XYPOSITION CharWidth(unsigned char ch, encodingType et_) { + XYPOSITION w = 0; FontMutexLock(); if ((ch <= 127) && (et == et_)) { w = width[ch]; @@ -177,7 +177,7 @@ public: FontMutexUnlock(); return w; } - void SetCharWidth(unsigned char ch, int w, encodingType et_) { + void SetCharWidth(unsigned char ch, XYPOSITION w, encodingType et_) { if (ch <= 127) { FontMutexLock(); if (et != et_) { |