mirror of
https://github.com/labwc/labwc.git
synced 2025-11-12 13:30:11 -05:00
xbm: parse_xbm_builtin() remove hard-coded values
This commit is contained in:
parent
5dbc87a1f9
commit
5ea1527558
3 changed files with 15 additions and 10 deletions
|
|
@ -33,7 +33,7 @@ static struct wlr_texture *texture_from_pixmap(struct wlr_renderer *renderer,
|
|||
static struct wlr_texture *texture_from_builtin(struct wlr_renderer *renderer,
|
||||
const char *button)
|
||||
{
|
||||
struct pixmap pixmap = parse_xbm_builtin(button);
|
||||
struct pixmap pixmap = parse_xbm_builtin(button, 6);
|
||||
struct wlr_texture *texture = texture_from_pixmap(renderer, &pixmap);
|
||||
if (pixmap.data)
|
||||
free(pixmap.data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue