Changeset 7b4f3be for global.c


Ignore:
Timestamp:
May 1, 2011, 5:29:25 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
1753ea0, 3fa0181
Parents:
9efa5bd
git-author:
David Benjamin <davidben@mit.edu> (04/26/11 21:46:58)
git-committer:
David Benjamin <davidben@mit.edu> (05/01/11 17:29:25)
Message:
Punt owl_global_hascolors

There's not much point as we're hardly abstracting ncurses away. Either
call has_colors directly or just don't bother and let another layer take
care of it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r9efa5bd r7b4f3be  
    5151  g->direction=OWL_DIRECTION_DOWNWARDS;
    5252  g->zaway=0;
    53   if (has_colors()) {
    54     g->hascolors=1;
    55   }
    5653  owl_fmtext_init_colorpair_mgr(&(g->cpmgr));
    5754  g->debug=OWL_DEBUG;
     
    573570owl_view *owl_global_get_current_view(owl_global *g) {
    574571  return(&(g->current_view));
    575 }
    576 
    577 /* has colors */
    578 
    579 int owl_global_get_hascolors(const owl_global *g) {
    580   if (g->hascolors) return(1);
    581   return(0);
    582572}
    583573
Note: See TracChangeset for help on using the changeset viewer.