mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 18:52:39 +03:00
GTK: Drop bitmap get bpp function.
This commit is contained in:
parent
236e8612e0
commit
26cef7d444
@ -283,22 +283,6 @@ static size_t bitmap_get_rowstride(void *vbitmap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Find the bytes per pixel of a bitmap
|
|
||||||
*
|
|
||||||
* \param vbitmap a bitmap, as returned by bitmap_create()
|
|
||||||
* \return bytes per pixel
|
|
||||||
*/
|
|
||||||
static size_t bitmap_get_bpp(void *vbitmap)
|
|
||||||
{
|
|
||||||
struct bitmap *gbitmap = (struct bitmap *)vbitmap;
|
|
||||||
assert(gbitmap);
|
|
||||||
|
|
||||||
return 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Free a bitmap.
|
* Free a bitmap.
|
||||||
*
|
*
|
||||||
@ -535,7 +519,6 @@ static struct gui_bitmap_table bitmap_table = {
|
|||||||
.get_rowstride = bitmap_get_rowstride,
|
.get_rowstride = bitmap_get_rowstride,
|
||||||
.get_width = nsgtk_bitmap_get_width,
|
.get_width = nsgtk_bitmap_get_width,
|
||||||
.get_height = nsgtk_bitmap_get_height,
|
.get_height = nsgtk_bitmap_get_height,
|
||||||
.get_bpp = bitmap_get_bpp,
|
|
||||||
.save = bitmap_save,
|
.save = bitmap_save,
|
||||||
.modified = bitmap_modified,
|
.modified = bitmap_modified,
|
||||||
.render = bitmap_render,
|
.render = bitmap_render,
|
||||||
|
Loading…
Reference in New Issue
Block a user