diff --git a/pipi/pixels.c b/pipi/pixels.c index fb459de..6a084ba 100644 --- a/pipi/pixels.c +++ b/pipi/pixels.c @@ -90,6 +90,8 @@ pipi_pixels_t *pipi_getpixels(pipi_image_t *img, pipi_format_t type) img->p[type].pixels = malloc(bytes); img->p[type].bytes = bytes; img->p[type].bpp = bpp; + img->p[type].w = img->w; + img->p[type].h = img->h; } /* Convert pixels */