Ignore:
Timestamp:
Apr 26, 2006, 1:54:26 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Implemented cucul_load_file() and cucul_load_memory() to load respectively a file and a memory area into a libcucul buffer.
  • Changed the cucul_import_canvas() prototype so that it uses libcucul buffers instead of simple memory areas.
Location:
libcaca/trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test

    • Property svn:ignore
      •  

        old new  
        1212gamma
        1313hsv
         14import
        1415spritedit
        1516text
  • libcaca/trunk/test/text.c

    r858 r896  
    3737    cucul_buffer_t *buffer;
    3838
    39     cv = cucul_import_canvas(STRING, strlen(STRING), "text");
     39    buffer = cucul_load_memory(STRING, strlen(STRING));
     40    cv = cucul_import_canvas(buffer, "text");
     41    cucul_free_buffer(buffer);
    4042
    4143    buffer = cucul_export_canvas(cv, "ansi");
Note: See TracChangeset for help on using the changeset viewer.