Changeset d754b0a
- Timestamp:
- Apr 19, 2007, 12:06:43 AM (18 years ago)
- 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:
- 4099cf8
- Parents:
- 85d1795
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
rc2c5c77 rd754b0a 453 453 int stacksize, curattrs, curcolor; 454 454 char *ptr, *txtptr, *buff, *tmpptr; 455 int attrstack[32], chrstack[32] ;455 int attrstack[32], chrstack[32], colorstack[32]; 456 456 457 457 curattrs=OWL_FMTEXT_ATTR_NONE; … … 508 508 attrstack[stacksize]=OWL_FMTEXT_ATTR_BOLD; 509 509 chrstack[stacksize]=tmpptr[0]; 510 colorstack[stacksize]=curcolor; 510 511 stacksize++; 511 512 curattrs|=OWL_FMTEXT_ATTR_BOLD; … … 516 517 attrstack[stacksize]=OWL_FMTEXT_ATTR_BOLD; 517 518 chrstack[stacksize]=tmpptr[0]; 519 colorstack[stacksize]=curcolor; 518 520 stacksize++; 519 521 curattrs|=OWL_FMTEXT_ATTR_BOLD; … … 524 526 attrstack[stacksize]=OWL_FMTEXT_ATTR_UNDERLINE; 525 527 chrstack[stacksize]=tmpptr[0]; 528 colorstack[stacksize]=curcolor; 526 529 stacksize++; 527 530 curattrs|=OWL_FMTEXT_ATTR_UNDERLINE; … … 532 535 attrstack[stacksize]=OWL_FMTEXT_ATTR_UNDERLINE; 533 536 chrstack[stacksize]=tmpptr[0]; 537 colorstack[stacksize]=curcolor; 534 538 stacksize++; 535 539 curattrs|=OWL_FMTEXT_ATTR_UNDERLINE; 536 540 txtptr+=8; 541 owl_free(buff); 542 continue; 543 } else if (!strcasecmp(buff, "@")) { 544 attrstack[stacksize]=OWL_FMTEXT_ATTR_NONE; 545 chrstack[stacksize]=tmpptr[0]; 546 colorstack[stacksize]=curcolor; 547 stacksize++; 548 txtptr+=2; 537 549 owl_free(buff); 538 550 continue; … … 608 620 stacksize--; 609 621 curattrs=OWL_FMTEXT_ATTR_NONE; 622 curcolor = colorstack[stacksize]; 610 623 for (i=0; i<stacksize; i++) { 611 624 curattrs|=attrstack[i];
Note: See TracChangeset
for help on using the changeset viewer.