Ignore:
Timestamp:
Nov 4, 2008, 1:39:40 AM (11 years ago)
Author:
bsittler
Message:

fix typo in PHP binding of caca_set_Attr that caused segfault on linux; also remove workaround for spurious extra-argument requirement from two of the PHP examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/colors.php

    r3229 r3260  
    4646caca_set_color_ansi($cv, CACA_LIGHTGRAY, CACA_BLACK);
    4747caca_put_str($cv, 3, 20, "This is bold    This is blink    This is italics    This is underline");
    48 caca_set_attr($cv, CACA_BOLD, CACA_DEFAULT);
     48caca_set_attr($cv, CACA_BOLD);
    4949caca_put_str($cv, 3 + 8, 20, "bold");
    50 caca_set_attr($cv, CACA_BLINK, CACA_DEFAULT);
     50caca_set_attr($cv, CACA_BLINK);
    5151caca_put_str($cv, 3 + 24, 20, "blink");
    52 caca_set_attr($cv, CACA_ITALICS, CACA_DEFAULT);
     52caca_set_attr($cv, CACA_ITALICS);
    5353caca_put_str($cv, 3 + 41, 20, "italics");
    54 caca_set_attr($cv, CACA_UNDERLINE, CACA_DEFAULT);
     54caca_set_attr($cv, CACA_UNDERLINE);
    5555caca_put_str($cv, 3 + 60, 20, "underline");
    5656
Note: See TracChangeset for help on using the changeset viewer.