diff options
Diffstat (limited to 'apps/gui')
-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 a7e55c2e0e..4d1526fcbc 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -2007,6 +2007,7 @@ static bool load_skin_bitmaps(struct wps_data *wps_data, char *bmpdir) | |||
2007 | { | 2007 | { |
2008 | struct skin_token_list *imglist = SKINOFFSETTOPTR(skin_buffer, list->next); | 2008 | struct skin_token_list *imglist = SKINOFFSETTOPTR(skin_buffer, list->next); |
2009 | img->subimage_height = img->bm.height / img->num_subimages; | 2009 | img->subimage_height = img->bm.height / img->num_subimages; |
2010 | struct bitmap* loaded_bm = &img->bm; | ||
2010 | while (imglist) | 2011 | while (imglist) |
2011 | { | 2012 | { |
2012 | token = SKINOFFSETTOPTR(skin_buffer, imglist->token); | 2013 | token = SKINOFFSETTOPTR(skin_buffer, imglist->token); |
@@ -2016,6 +2017,7 @@ static bool load_skin_bitmaps(struct wps_data *wps_data, char *bmpdir) | |||
2016 | { | 2017 | { |
2017 | img->loaded = true; | 2018 | img->loaded = true; |
2018 | img->buflib_handle = handle; | 2019 | img->buflib_handle = handle; |
2020 | img->bm = *loaded_bm; | ||
2019 | img->subimage_height = img->bm.height / img->num_subimages; | 2021 | img->subimage_height = img->bm.height / img->num_subimages; |
2020 | } | 2022 | } |
2021 | } | 2023 | } |