Ignore:
Timestamp:
Apr 13, 2006, 2:50:41 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed cucul_export into cucul_buffer. We'll use it for other things.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/export_ps.c

    r738 r757  
    6060 *  the current image.
    6161 */
    62 void _cucul_get_ps(cucul_t *qq, struct cucul_export *ex)
     62void _cucul_get_ps(cucul_t *qq, struct cucul_buffer *ex)
    6363{
    6464    static char const * const palette[] =
     
    7676    /* 200 is arbitrary but should be ok */
    7777    ex->size = strlen(ps_header) + (qq->width * qq->height * 200);
    78     ex->buffer = malloc(ex->size);
     78    ex->data = malloc(ex->size);
    7979
    80     cur = ex->buffer;
     80    cur = ex->data;
    8181
    8282    /* Header */
     
    135135
    136136    /* Crop to really used size */
    137     ex->size = (uintptr_t)(cur - ex->buffer);
    138     ex->buffer = realloc(ex->buffer, ex->size);
     137    ex->size = (uintptr_t)(cur - ex->data);
     138    ex->data = realloc(ex->data, ex->size);
    139139}
    140140
Note: See TracChangeset for help on using the changeset viewer.