Ignore:
Timestamp:
Sep 27, 2008, 3:12:46 PM (11 years ago)
Author:
Sam Hocevar
Message:

Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.

File:
1 edited

Legend:

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

    r2136 r2821  
    4141int main(int argc, char *argv[])
    4242{
    43     Cucul *cv, *pig;
     43    Canvas *cv, *pig;
    4444    Caca  *dp;
    4545
     
    4747
    4848    try {
    49         cv = new Cucul();
     49        cv = new Canvas();
    5050    }
    5151    catch (int e) {
     
    6464    try {
    6565        // Import buffer into a canvas
    66         pig = new Cucul();
    67         pig->setColorANSI(CUCUL_LIGHTMAGENTA, CUCUL_TRANSPARENT);
     66        pig = new Canvas();
     67        pig->setColorANSI(CACA_LIGHTMAGENTA, CACA_TRANSPARENT);
    6868        pig->importMemory(pigstring, strlen(pigstring), "text");
    6969    }
     
    9090
    9191        /* printf works */
    92         cv->setColorANSI(CUCUL_LIGHTBLUE, CUCUL_BLACK);
     92        cv->setColorANSI(CACA_LIGHTBLUE, CACA_BLACK);
    9393        cv->Printf(cv->getWidth() / 2 - 10, cv->getHeight() / 2,
    9494                   "Powered by libcaca %s", dp->getVersion());
Note: See TracChangeset for help on using the changeset viewer.