aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-12-09 15:03:30 +1100
committernyamatongwe <unknown>2011-12-09 15:03:30 +1100
commita87633c0d931ead0d086c1f78b2f41090b3ee6fe (patch)
tree34ebc4884cb8c02b5894d80130c9d4b38987d048
parentfbeb8e678b79c4631c60de32f20bebafa798209e (diff)
downloadscintilla-mirror-a87633c0d931ead0d086c1f78b2f41090b3ee6fe.tar.gz
Allow fractional widths for single character strings.
-rw-r--r--gtk/PlatGTK.cxx8
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_) {