mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
xbm: s/u32/argb32/ function name change
This commit is contained in:
parent
6faee17d20
commit
235e11f6c9
1 changed files with 3 additions and 3 deletions
|
|
@ -162,7 +162,7 @@ out:
|
|||
}
|
||||
|
||||
static uint32_t
|
||||
u32(float *rgba)
|
||||
argb32(float *rgba)
|
||||
{
|
||||
uint32_t r[4] = { 0 };
|
||||
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);
|
||||
*buffer = NULL;
|
||||
}
|
||||
color = u32(rgba);
|
||||
color = argb32(rgba);
|
||||
pixmap = parse_xbm_builtin(bitmap, 6);
|
||||
*buffer = buffer_create_wrap(pixmap.data, pixmap.width, pixmap.height,
|
||||
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);
|
||||
*buffer = NULL;
|
||||
}
|
||||
color = u32(rgba);
|
||||
color = argb32(rgba);
|
||||
|
||||
/* Read file into memory as it's easier to tokenize that way */
|
||||
char filename[4096] = { 0 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue