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/src/cacaplay.c

    r2300 r2821  
    2525#endif
    2626
    27 #include "cucul.h"
    2827#include "caca.h"
    2928
    3029int main(int argc, char **argv)
    3130{
    32     cucul_canvas_t *cv, *app;
     31    caca_canvas_t *cv, *app;
    3332    caca_display_t *dp;
    3433    uint8_t *buf = NULL;
     
    5049    }
    5150
    52     cv = cucul_create_canvas(0, 0);
    53     app = cucul_create_canvas(0, 0);
     51    cv = caca_create_canvas(0, 0);
     52    app = caca_create_canvas(0, 0);
    5453    if(cv == NULL || app == NULL)
    5554    {
     
    9190        }
    9291
    93         bytes = cucul_import_memory(app, buf, total, "caca");
     92        bytes = caca_import_memory(app, buf, total, "caca");
    9493
    9594        if(bytes > 0)
     
    9897            memmove(buf, buf + bytes, total);
    9998
    100             cucul_blit(cv, 0, 0, app, NULL);
     99            caca_blit(cv, 0, 0, app, NULL);
    101100            caca_refresh_display(dp);
    102101        }
     
    117116
    118117    caca_free_display(dp);
    119     cucul_free_canvas(cv);
     118    caca_free_canvas(cv);
    120119
    121120    return 0;
Note: See TracChangeset for help on using the changeset viewer.