diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-11-08 21:39:28 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-11-08 21:39:28 +0000 |
commit | b02c82e10529f2750103e31285500e927ec37a7c (patch) | |
tree | 642e2fabdc43391881c3762486e6090b72af35cf /apps/gui/skin_engine/skin_parser.c | |
parent | c7b8054714cff4580ddbdbf5c9d503b20ff45740 (diff) | |
download | rockbox-b02c82e10529f2750103e31285500e927ec37a7c.tar.gz rockbox-b02c82e10529f2750103e31285500e927ec37a7c.zip |
Adapt icon and skin engine to make use of the new 32bit bitmap capabilities.
You can now use 32bit icons in lists and skins
(except album art, but can be added if wanted). The code also shows how
to free the unused alpha channel data if the bitmap doesn't actually contain
such information.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30939 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index d207a1fb3e..8eef1dedee 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -1577,6 +1577,8 @@ static int load_skin_bmp(struct wps_data *wps_data, struct bitmap *bitmap, char* | |||
1577 | close(fd); | 1577 | close(fd); |
1578 | if (ret > 0) | 1578 | if (ret > 0) |
1579 | { | 1579 | { |
1580 | /* free unused alpha channel, if any */ | ||
1581 | core_shrink(handle, core_get_data(handle), ret); | ||
1580 | return handle; | 1582 | return handle; |
1581 | } | 1583 | } |
1582 | else | 1584 | else |