diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-26 15:29:35 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-26 15:45:00 +0000 |
commit | 976f54bf48338a8b96ab6fc329bc7b00e9ef5e08 (patch) | |
tree | 81f9b04e48e63d17b292f89c46ef682b2c998568 /desktop | |
parent | f27db5f80b074148aa9b8dd593dc2eefbc9e36ad (diff) | |
download | netsurf-976f54bf48338a8b96ab6fc329bc7b00e9ef5e08.tar.gz netsurf-976f54bf48338a8b96ab6fc329bc7b00e9ef5e08.tar.bz2 |
Bitmap: Initialise layout for default pixel format.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/bitmap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/bitmap.c b/desktop/bitmap.c index 3e8529a54..4977f7a0a 100644 --- a/desktop/bitmap.c +++ b/desktop/bitmap.c @@ -34,7 +34,12 @@ bitmap_fmt_t bitmap_fmt; /** The client bitmap colour channel layout. */ -struct bitmap_colour_layout bitmap_layout; +struct bitmap_colour_layout bitmap_layout = { + .r = 0, + .g = 1, + .b = 2, + .a = 3, +}; /* Exported function, documented in include/netsurf/bitmap.h */ void bitmap_set_format(const bitmap_fmt_t *bitmap_format) |