Ignore:
Timestamp:
Apr 17, 2006, 1:00:10 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed C++ printf(), added it in example
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cpp/cpptest.cpp

    r782 r783  
    4747    }
    4848
     49   
     50    /* Draw pig */
    4951    qq->set_color(CUCUL_COLOR_LIGHTMAGENTA, CUCUL_COLOR_BLACK);
    50 
     52   
    5153    for(int i = 0; pig[i]; i++)
    5254        qq->putstr(0, i, (char*)pig[i]);
    53 
     55   
     56    /* printf works */
     57    qq->set_color(CUCUL_COLOR_LIGHTBLUE, CUCUL_COLOR_BLACK); 
     58    qq->printf(7,15, "Powered by libcaca %s", VERSION);
     59   
    5460
    5561    kk->display();
Note: See TracChangeset for help on using the changeset viewer.