diff options
author | corvid <corvid@lavabit.com> | 2011-06-12 15:49:32 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-06-12 15:49:32 +0000 |
commit | aa1785ccf469b84eec7ab9961c04d9e0a54d2ad2 (patch) | |
tree | 161a6e56555026b731fec926d1e6844954f44f1e /dw/fltkplatform.cc | |
parent | c5be2477a8078aa2c34c5b121320a062efe9a250 (diff) | |
parent | 988480437fbc89955ef4f08c283ce1f193972420 (diff) |
merge in recent changes from main repo
Diffstat (limited to 'dw/fltkplatform.cc')
-rw-r--r-- | dw/fltkplatform.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/fltkplatform.cc b/dw/fltkplatform.cc index 148ac812..d4db5d7a 100644 --- a/dw/fltkplatform.cc +++ b/dw/fltkplatform.cc @@ -421,7 +421,7 @@ int FltkPlatform::textWidth (core::style::Font *font, const char *text, FltkFont *ff = (FltkFont*) font; int curr = 0, next = 0, nb; - if (font->fontVariant == 1) { + if (font->fontVariant == core::style::FONT_VARIANT_SMALL_CAPS) { int sc_fontsize = lout::misc::roundInt(ff->size * 0.78); for (curr = 0; next < len; curr = next) { next = nextGlyph(text, curr); |