Changeset 237d02c for owl.h


Ignore:
Timestamp:
Feb 26, 2011, 12:58:30 AM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
cb6c9e1
Parents:
7659079
git-author:
David Benjamin <davidben@mit.edu> (02/25/11 15:25:58)
git-committer:
David Benjamin <davidben@mit.edu> (02/26/11 00:58:30)
Message:
Remove default_{attrs,fgcolor,bgcolor} from owl_fmtext

They didn't quite behave when appending two owl_fmtexts together; what
does it mean to append a string whose default color is red to one whose
default color is blue? (And then you set the default to green
afterwards...)

Now owl_fmtext is merely a unicode string with formatting characters.
Default attributes are instead a property of how you view the string and
are passed to owl_fmtext_curs_waddstr. Which unfortunately means it has
a lot of arguments. :-/
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r7659079 r237d02c  
    276276typedef struct _owl_fmtext {
    277277  GString *buff;
    278   char default_attrs;
    279   short default_fgcolor;
    280   short default_bgcolor;
    281278} owl_fmtext;
    282279
Note: See TracChangeset for help on using the changeset viewer.