mirror of
https://github.com/labwc/labwc.git
synced 2026-04-11 08:21:13 -04:00
icon-loader: update PNG and XPM loaders to use new buffer helper
This commit is contained in:
parent
2e9b5886ce
commit
36f754e662
6 changed files with 34 additions and 43 deletions
|
|
@ -266,7 +266,7 @@ icon_loader_lookup(struct server *server, const char *app_id, int size,
|
|||
|
||||
switch (ctx.format) {
|
||||
case SFDO_ICON_FILE_FORMAT_PNG:
|
||||
img_png_load(ctx.path, &icon_buffer);
|
||||
img_png_load(ctx.path, &icon_buffer, size, scale);
|
||||
break;
|
||||
case SFDO_ICON_FILE_FORMAT_SVG:
|
||||
#if HAVE_RSVG
|
||||
|
|
@ -274,7 +274,7 @@ icon_loader_lookup(struct server *server, const char *app_id, int size,
|
|||
#endif
|
||||
break;
|
||||
case SFDO_ICON_FILE_FORMAT_XPM:
|
||||
img_xpm_load(ctx.path, &icon_buffer);
|
||||
img_xpm_load(ctx.path, &icon_buffer, size, scale);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue