From 002c3c1a7c2ae7229afac3f1966892fd42895aec Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 24 Mar 2022 18:09:28 +0000 Subject: Bitmap API: Clean up creation flags. --- content/handlers/image/png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/handlers/image/png.c') diff --git a/content/handlers/image/png.c b/content/handlers/image/png.c index a1db3f697..d4c2ae061 100644 --- a/content/handlers/image/png.c +++ b/content/handlers/image/png.c @@ -163,7 +163,7 @@ static void info_callback(png_structp png_s, png_infop info) } /* Claim the required memory for the converted PNG */ - png_c->bitmap = guit->bitmap->create(width, height, BITMAP_NEW); + png_c->bitmap = guit->bitmap->create(width, height, BITMAP_NONE); if (png_c->bitmap == NULL) { /* Failed to create bitmap skip pre-conversion */ longjmp(png_jmpbuf(png_s), CBERR_NOPRE); @@ -483,7 +483,7 @@ png_cache_convert(struct content *c) height = png_get_image_height(png_ptr, info_ptr); /* Claim the required memory for the converted PNG */ - bitmap = guit->bitmap->create(width, height, BITMAP_NEW); + bitmap = guit->bitmap->create(width, height, BITMAP_NONE); if (bitmap == NULL) { /* cleanup and bail */ goto png_cache_convert_error; -- cgit v1.2.3