summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_buffer.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-09-02 02:55:33 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-09-02 02:55:33 +0000
commit8cb74438bc7c282f1ac9803afd1d1f9e68af17ae (patch)
tree9f2aaf1dd8aff6395452152ae7e0d41978f5a9e5 /apps/gui/skin_engine/skin_buffer.c
parent8964fd1495ba2c69cff40e378d08aec4a651877f (diff)
downloadrockbox-8cb74438bc7c282f1ac9803afd1d1f9e68af17ae.tar.gz
rockbox-8cb74438bc7c282f1ac9803afd1d1f9e68af17ae.zip
Almost the last of the skin ram wastage fixing... This one moved the line/subline handling into the alloced buffer and links them more sensibly with their viewports.
now it works something like this: a skin is a list of viewports, each viewport has a list of lines, each line is a list of sublines, each subline has an *index* of its first and last tokens... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22602 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_buffer.c')
-rw-r--r--apps/gui/skin_engine/skin_buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_buffer.c b/apps/gui/skin_engine/skin_buffer.c
index c7e01ba5cd..1d18fb9431 100644
--- a/apps/gui/skin_engine/skin_buffer.c
+++ b/apps/gui/skin_engine/skin_buffer.c
@@ -118,6 +118,8 @@ void* skin_buffer_alloc(size_t size)
buffer_back -= size;
/* 32-bit aligned */
buffer_back = (void *)(((unsigned long)buffer_back) & ~3);
+
+ memset(buffer_back, 0, size);
return buffer_back;
}