diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-24 18:09:28 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-24 18:09:28 +0000 |
commit | 002c3c1a7c2ae7229afac3f1966892fd42895aec (patch) | |
tree | bc9c769b176981296b5e92233fd623b3164a4513 /frontends/gtk | |
parent | c2d72d1e9361b3017872e5aff16cfe9a894f3048 (diff) | |
download | netsurf-002c3c1a7c2ae7229afac3f1966892fd42895aec.tar.gz netsurf-002c3c1a7c2ae7229afac3f1966892fd42895aec.tar.bz2 |
Bitmap API: Clean up creation flags.
Diffstat (limited to 'frontends/gtk')
-rw-r--r-- | frontends/gtk/bitmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/gtk/bitmap.c b/frontends/gtk/bitmap.c index cafe22262..1f1a6dcd2 100644 --- a/frontends/gtk/bitmap.c +++ b/frontends/gtk/bitmap.c @@ -45,17 +45,17 @@ * Create a bitmap. * * \param width width of image in pixels - * \param height width of image in pixels - * \param state a flag word indicating the initial state + * \param height height of image in pixels + * \param flags flags for bitmap creation * \return an opaque struct bitmap, or NULL on memory exhaustion */ -static void *bitmap_create(int width, int height, unsigned int state) +static void *bitmap_create(int width, int height, enum gui_bitmap_flags flags) { struct bitmap *gbitmap; gbitmap = calloc(1, sizeof(struct bitmap)); if (gbitmap != NULL) { - if ((state & BITMAP_OPAQUE) != 0) { + if ((flags & BITMAP_OPAQUE) != 0) { gbitmap->surface = cairo_image_surface_create(CAIRO_FORMAT_RGB24, width, height); } else { gbitmap->surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height); |