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 /include/netsurf | |
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 'include/netsurf')
-rw-r--r-- | include/netsurf/bitmap.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/netsurf/bitmap.h b/include/netsurf/bitmap.h index eb26810a9..25923da5c 100644 --- a/include/netsurf/bitmap.h +++ b/include/netsurf/bitmap.h @@ -134,6 +134,14 @@ struct hlcache_handle; void bitmap_set_format(const bitmap_fmt_t *bitmap_format); /** + * Test whether a bitmap is completely opaque (no transparency). + * + * \param[in] bitmap The bitmap to test. + * \return Returns true if the bitmap is opaque, false otherwise. + */ +bool bitmap_test_opaque(void *bitmap); + +/** * Bitmap operations. */ struct gui_bitmap_table { @@ -173,14 +181,6 @@ struct gui_bitmap_table { bool (*get_opaque)(void *bitmap); /** - * Test if a bitmap is opaque. - * - * \param bitmap The bitmap to examine. - * \return The bitmap opacity. - */ - bool (*test_opaque)(void *bitmap); - - /** * Get the image buffer from a bitmap * * Note that all pixels must be 4-byte aligned. |