changeset 2082:2cbc29401c51

smallcaps use the proper enum value
author corvid <corvid@lavabit.com>
date Fri, 03 Jun 2011 17:53:46 +0000
parents 1b4d8d05173d
children 796ee3ef6426
files dw/fltkplatform.cc dw/fltkviewbase.cc
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkplatform.cc	Fri Jun 03 02:41:30 2011 +0000
+++ b/dw/fltkplatform.cc	Fri Jun 03 17:53:46 2011 +0000
@@ -359,7 +359,7 @@
    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);
--- a/dw/fltkviewbase.cc	Fri Jun 03 02:41:30 2011 +0000
+++ b/dw/fltkviewbase.cc	Fri Jun 03 17:53:46 2011 +0000
@@ -530,7 +530,7 @@
       char chbuf[4];
       wchar_t wc, wcu;
 
-      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 = theLayout->nextGlyph(text, curr);