diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-24 11:12:57 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-24 11:12:57 +0000 |
commit | 1dd3c80d9beb45eda990bf46a704809dec2e4ba0 (patch) | |
tree | d2604dde8a8d7ec9e878da279af6e95fcb814439 /content/handlers/image | |
parent | 7c3382834eda19e2aba6e53d855c35e011b5ebfc (diff) | |
download | netsurf-1dd3c80d9beb45eda990bf46a704809dec2e4ba0.tar.gz netsurf-1dd3c80d9beb45eda990bf46a704809dec2e4ba0.tar.bz2 |
PNG: Bytes per pixel is always 4.
Diffstat (limited to 'content/handlers/image')
-rw-r--r-- | content/handlers/image/png.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/image/png.c b/content/handlers/image/png.c index 06a38ca0f..a1db3f697 100644 --- a/content/handlers/image/png.c +++ b/content/handlers/image/png.c @@ -170,7 +170,7 @@ static void info_callback(png_structp png_s, png_infop info) } png_c->rowstride = guit->bitmap->get_rowstride(png_c->bitmap); - png_c->bpp = guit->bitmap->get_bpp(png_c->bitmap); + png_c->bpp = sizeof(uint32_t); nspng_setup_transforms(png_s, info); |