Browse Source

* pixels.c: fix uninitialised w and h in pipi_getpixels.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2728 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam 16 years ago
parent
commit
f6f7cbc060
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      pipi/pixels.c

+ 2
- 0
pipi/pixels.c View File

@@ -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 */


Loading…
Cancel
Save