Changeset c55ad84


Ignore:
Timestamp:
Jan 12, 2008, 2:26:49 AM (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:
b7b4565
Parents:
f92080c
Message:
* fix a typo that was causing background problems
* pass defaults attributes through in the truncate functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    rc1522ec rc55ad84  
    1414  f->default_attrs = OWL_FMTEXT_ATTR_NONE;
    1515  f->default_fgcolor = OWL_COLOR_DEFAULT;
    16   f->default_fgcolor = OWL_COLOR_DEFAULT;
     16  f->default_bgcolor = OWL_COLOR_DEFAULT;
    1717}
    1818
     
    2525  f->default_attrs = OWL_FMTEXT_ATTR_NONE;
    2626  f->default_fgcolor = OWL_COLOR_DEFAULT;
    27   f->default_fgcolor = OWL_COLOR_DEFAULT;
     27  f->default_bgcolor = OWL_COLOR_DEFAULT;
    2828}
    2929
     
    388388  /* ptr1 now holds the starting point */
    389389
     390  /* copy the default attributes */
     391  out->default_attrs = in->default_attrs;
     392  out->default_fgcolor = in->default_fgcolor;
     393  out->default_bgcolor = in->default_bgcolor;
     394   
    390395  /* copy in the next 'lines' lines */
    391396  if (lines < 1) return(-1);
     
    416421  char *ptr_s, *ptr_e, *ptr_c, *last;
    417422  int col, st, padding, chwidth;
     423
     424  /* copy the default attributes */
     425  out->default_attrs = in->default_attrs;
     426  out->default_fgcolor = in->default_fgcolor;
     427  out->default_bgcolor = in->default_bgcolor;
    418428
    419429  last=in->textbuff+in->textlen-1;
Note: See TracChangeset for help on using the changeset viewer.