xbm: s/u32/argb32/ function name change

This commit is contained in:
Johan Malm 2023-12-28 22:50:12 +00:00 committed by Consolatis
parent 6faee17d20
commit 235e11f6c9

View file

@ -162,7 +162,7 @@ out:
} }
static uint32_t static uint32_t
u32(float *rgba) argb32(float *rgba)
{ {
uint32_t r[4] = { 0 }; uint32_t r[4] = { 0 };
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
@ -264,7 +264,7 @@ button_xbm_from_bitmap(const char *bitmap, struct lab_data_buffer **buffer,
wlr_buffer_drop(&(*buffer)->base); wlr_buffer_drop(&(*buffer)->base);
*buffer = NULL; *buffer = NULL;
} }
color = u32(rgba); color = argb32(rgba);
pixmap = parse_xbm_builtin(bitmap, 6); pixmap = parse_xbm_builtin(bitmap, 6);
*buffer = buffer_create_wrap(pixmap.data, pixmap.width, pixmap.height, *buffer = buffer_create_wrap(pixmap.data, pixmap.width, pixmap.height,
pixmap.width * 4, /* free_on_destroy */ true); pixmap.width * 4, /* free_on_destroy */ true);
@ -279,7 +279,7 @@ button_xbm_load(const char *button_name, struct lab_data_buffer **buffer,
wlr_buffer_drop(&(*buffer)->base); wlr_buffer_drop(&(*buffer)->base);
*buffer = NULL; *buffer = NULL;
} }
color = u32(rgba); color = argb32(rgba);
/* Read file into memory as it's easier to tokenize that way */ /* Read file into memory as it's easier to tokenize that way */
char filename[4096] = { 0 }; char filename[4096] = { 0 };