diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-29 17:32:40 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-29 17:32:40 +0100 |
commit | 7d5c449389162c3b11cecc0b4a969d50a693c8b1 (patch) | |
tree | 19bb35493ac737601a082c3aaea29a5ca0af4b38 /frontends/gtk/bitmap.h | |
parent | 8e56cc3b1a0d9d18e35811a015cf42b57ede1025 (diff) | |
download | netsurf-7d5c449389162c3b11cecc0b4a969d50a693c8b1.tar.gz netsurf-7d5c449389162c3b11cecc0b4a969d50a693c8b1.tar.bz2 |
GTK: Simplify opaque bitmap handling.
Avoid creating new bitmaps and copying in set_opaque by always
using an RGBA format.
Diffstat (limited to 'frontends/gtk/bitmap.h')
-rw-r--r-- | frontends/gtk/bitmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/gtk/bitmap.h b/frontends/gtk/bitmap.h index d899966bd..80a0e7a3a 100644 --- a/frontends/gtk/bitmap.h +++ b/frontends/gtk/bitmap.h @@ -26,6 +26,7 @@ extern struct gui_bitmap_table *nsgtk_bitmap_table; struct bitmap { cairo_surface_t *surface; /* original cairo surface */ cairo_surface_t *scsurface; /* scaled surface */ + bool opaque; }; int nsgtk_bitmap_get_width(void *vbitmap); |