Changeset 6f6330b


Ignore:
Timestamp:
Feb 4, 2008, 8:17:18 PM (17 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1ba81e3
Parents:
99219ed
Message:
* fix a typo in OWL_FMTEXT_UTF8_BGDEFAULT
* fix a parsing issue for attributes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r99219ed r6f6330b  
    143143    *attr = c & OWL_FMTEXT_UC_ATTR_MASK;
    144144  }
    145   else if ((c & OWL_FMTEXT_UC_FGCOLOR) == OWL_FMTEXT_UC_FGCOLOR) {
    146     *fgcolor = (c == OWL_FMTEXT_UC_FGDEFAULT
    147                 ? OWL_COLOR_DEFAULT
    148                 : c & OWL_FMTEXT_UC_COLOR_MASK);
    149   }
    150   else if ((c & OWL_FMTEXT_UC_BGCOLOR) == OWL_FMTEXT_UC_BGCOLOR) {
    151     *bgcolor = (c == OWL_FMTEXT_UC_BGDEFAULT
    152                 ? OWL_COLOR_DEFAULT
    153                 : c & OWL_FMTEXT_UC_COLOR_MASK);
     145  else if ((c & OWL_FMTEXT_UC_COLOR_BASE) == OWL_FMTEXT_UC_COLOR_BASE) {
     146    if ((c & OWL_FMTEXT_UC_BGCOLOR) == OWL_FMTEXT_UC_BGCOLOR) {
     147      *bgcolor = (c == OWL_FMTEXT_UC_BGDEFAULT
     148                  ? OWL_COLOR_DEFAULT
     149                  : c & OWL_FMTEXT_UC_COLOR_MASK);
     150    }
     151    else if ((c & OWL_FMTEXT_UC_FGCOLOR) == OWL_FMTEXT_UC_FGCOLOR) {
     152      *fgcolor = (c == OWL_FMTEXT_UC_FGDEFAULT
     153                  ? OWL_COLOR_DEFAULT
     154                  : c & OWL_FMTEXT_UC_COLOR_MASK);
     155    }
    154156  }
    155157}
  • owl.h

    rf92080c r6f6330b  
    118118#define OWL_FMTEXT_UTF8_ATTR_NONE "\xf4\x80\xa0\x80"
    119119#define OWL_FMTEXT_UTF8_FGDEFAULT "\xf4\x80\x94\x80"
    120 #define OWL_FMTEXT_UTF8_BGDEFAULT "\xf4\x80\x96\x80"
    121 
    122 
    123 
     120#define OWL_FMTEXT_UTF8_BGDEFAULT "\xf4\x80\x9C\x80"
    124121
    125122#define OWL_COLOR_BLACK     0
Note: See TracChangeset for help on using the changeset viewer.