Changeset 8fa9562 for owl.h


Ignore:
Timestamp:
Jan 20, 2007, 9:49:55 PM (14 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
575877f
Parents:
212764e
Message:
Added background color support to owl.

If we run out of color pairs during a painting of the screen, further
background colors will be silently dropped. I'm hoping this doesn't
happen often. The used pair list is reset with each draw, so only
what's actually on screen matters.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    rcb769bb r8fa9562  
    252252  char *textbuff;
    253253  char *fmbuff;
    254   char *colorbuff;
     254  char *fgcolorbuff;
     255  char *bgcolorbuff;
    255256} owl_fmtext;
    256257
     
    415416  int polarity;
    416417  owl_filterelement * root;
    417   int color;
     418  int fgcolor;
     419  int bgcolor;
    418420  int cachedmsgid;  /* cached msgid: should move into view eventually */
    419421} owl_filter;
     
    513515  owl_list errlist;
    514516} owl_errqueue;
     517
     518typedef struct _owl_colorpair_mgr {
     519  char *used;
     520  int **pairs;
     521} owl_colorpair_mgr;
    515522
    516523typedef struct _owl_global {
     
    556563  int hascolors;
    557564  int colorpairs;
     565  owl_colorpair_mgr cpmgr;
    558566  int searchactive;
    559567  int newmsgproc_pid;
Note: See TracChangeset for help on using the changeset viewer.