Ignore:
Timestamp:
Aug 2, 2008, 2:00:51 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • pipi.c: reimplement pipi_new() without relying on the underlying codec library, so we can have several or none of them at some time.
  • sdl.c imlib.c: allow to save images that weren't created using the current codec.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/pipi.c

    r2605 r2629  
    3939*/
    4040
     41pipi_image_t *pipi_new(int w, int h)
     42{
     43    pipi_image_t *img;
     44
     45    img = malloc(sizeof(pipi_image_t));
     46    memset(img, 0, sizeof(pipi_image_t));
     47
     48    img->w = w;
     49    img->h = h;
     50    img->last_modified = PIPI_PIXELS_UNINITIALISED;
     51
     52    return img;
     53}
     54
Note: See TracChangeset for help on using the changeset viewer.