diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-29 15:25:33 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-29 15:25:33 +0100 |
commit | 8e56cc3b1a0d9d18e35811a015cf42b57ede1025 (patch) | |
tree | c3ec6fc87924e500e168986a6921f6bff93cd280 /content/handlers/image/png.c | |
parent | cfbd16cf7ea3335b7ac75989c4ffa63306224dfc (diff) | |
download | netsurf-8e56cc3b1a0d9d18e35811a015cf42b57ede1025.tar.gz netsurf-8e56cc3b1a0d9d18e35811a015cf42b57ede1025.tar.bz2 |
Bitmap: Implement test_opaque in core instead of in every frontend.
Diffstat (limited to 'content/handlers/image/png.c')
-rw-r--r-- | content/handlers/image/png.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/image/png.c b/content/handlers/image/png.c index 520b72834..97a5795b3 100644 --- a/content/handlers/image/png.c +++ b/content/handlers/image/png.c @@ -538,7 +538,7 @@ png_cache_convert_error: } if (bitmap != NULL) { - bool opaque = guit->bitmap->test_opaque((void *)bitmap); + bool opaque = bitmap_test_opaque((void *)bitmap); guit->bitmap->set_opaque((void *)bitmap, opaque); bitmap_format_to_client((void *)bitmap, &(bitmap_fmt_t) { .layout = bitmap_fmt.layout, @@ -571,7 +571,7 @@ static bool nspng_convert(struct content *c) } if (png_c->bitmap != NULL) { - bool opaque = guit->bitmap->test_opaque(png_c->bitmap); + bool opaque = bitmap_test_opaque(png_c->bitmap); guit->bitmap->set_opaque(png_c->bitmap, opaque); bitmap_format_to_client(png_c->bitmap, &(bitmap_fmt_t) { .layout = bitmap_fmt.layout, |