Ignore:
Timestamp:
Nov 13, 2006, 10:42:15 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Updated C++ bindings so that they build, at least.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cxx/cxxtest.cpp

    r1310 r1388  
    6565    try {
    6666        // Import buffer into a canvas
    67         Buffer *buf = new Buffer();
    68         buf->loadMemory((void *)pigstring, strlen(pigstring));
    69         pig = new Cucul(buf, "text");
    70         delete buf;
    71         // Change colour to magenta
     67        pig = new Cucul();
    7268        pig->setColorANSI(CUCUL_LIGHTMAGENTA, CUCUL_TRANSPARENT);
    73         for(int y = 0; y < pig->getHeight(); y++)
    74             for(int x = 0; x < pig->getWidth(); x++)
    75                 pig->putChar(x, y, pig->getChar(x, y));
     69        pig->importMemory(pigstring, strlen(pigstring), "text");
    7670    }
    7771    catch(int e) {
Note: See TracChangeset for help on using the changeset viewer.