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/export.php

    r3245 r3260  
    112112        caca_put_str($cv, WIDTH / 2 - 5, HEIGHT / 2 + 4, "(\") \\o/ <&>");
    113113
    114         caca_set_attr($cv, CACA_BOLD, CACA_DEFAULT);
     114        caca_set_attr($cv, CACA_BOLD);
    115115        caca_put_str($cv, WIDTH / 2 - 16, HEIGHT / 2 + 3, "Bold");
    116         caca_set_attr($cv, CACA_BLINK, CACA_DEFAULT);
     116        caca_set_attr($cv, CACA_BLINK);
    117117        caca_put_str($cv, WIDTH / 2 - 9, HEIGHT / 2 + 3, "Blink");
    118         caca_set_attr($cv, CACA_ITALICS, CACA_DEFAULT);
     118        caca_set_attr($cv, CACA_ITALICS);
    119119        caca_put_str($cv, WIDTH / 2 - 1, HEIGHT / 2 + 3, "Italics");
    120         caca_set_attr($cv, CACA_UNDERLINE, CACA_DEFAULT);
     120        caca_set_attr($cv, CACA_UNDERLINE);
    121121        caca_put_str($cv, WIDTH / 2 + 8, HEIGHT / 2 + 3, "Underline");
    122         caca_set_attr($cv, 0, CACA_DEFAULT);
     122        caca_set_attr($cv, 0);
    123123
    124124        caca_set_color_ansi($cv, CACA_WHITE, CACA_LIGHTBLUE);
Note: See TracChangeset for help on using the changeset viewer.