(hopefully) Fix FS#12639 and other skin related buflib corruption issues.
commit7909bf039f6e5984b5a037d3de69128f02408223
authorJonathan Gordon <rockbox@jdgordon.info>
Wed, 16 May 2012 12:28:59 +0000 (16 22:28 +1000)
committerJonathan Gordon <rockbox@jdgordon.info>
Wed, 16 May 2012 12:33:40 +0000 (16 22:33 +1000)
treebbb8cf36a77b408b76247010258fcc3e9f4d654b
parent027ebaf46330b8e7df1a09974ee16f644edccacb
(hopefully) Fix FS#12639 and other skin related buflib corruption issues.

Kudos to funman for figuring out the problem - skin_find_item() rather
stupidly uses the global skin_buffer variable in skin_parser.c which is
fine in the parser EXCEPT it gets changed in skin_render when the sbs
is being redrawn while another skin is loading, so fix this by makeing
skin_find_item() use a local data pointer so a skin_render() during
parsing won't break anything.

Change-Id: I80e1c0efe569c18225e5772159c18ebb21e07332
apps/gui/skin_engine/skin_parser.c
apps/gui/skin_engine/skin_render.c