forked from enlightenment/efl
Fix evas bmp loader code which deal with image size.
if image file's image size not apply padding size, decoding cannot work correctly SVN revision: 82532
This commit is contained in:
parent
09e6baa5a4
commit
aad1b1ed4e
|
@ -1,3 +1,7 @@
|
|||
2013-01-09 Jiyoun Park (jypark)
|
||||
|
||||
* Fix evas bmp loader code which deal with image size.
|
||||
|
||||
2013-01-08 Gustavo Sverzut Barbieri (k-s)
|
||||
|
||||
* Fix eina_prefix_new() with debian multilib without magic check file.
|
||||
|
|
1
NEWS
1
NEWS
|
@ -105,3 +105,4 @@ Fixes:
|
|||
* Fix build of Evas XCB backend
|
||||
* Fix efreet desktop command parsing of https
|
||||
* Fix eina_prefix_new() with debian multilib without magic check file.
|
||||
* Fix evas bmp loader code which deal with image size.
|
||||
|
|
|
@ -625,6 +625,8 @@ evas_image_load_file_data_bmp(Image_Entry *ie, const char *file, const char *key
|
|||
}
|
||||
|
||||
row_size = ceil((double)(image_w * bit_count) / 32) * 4;
|
||||
if (image_size != row_size * h)
|
||||
image_size = row_size * h;
|
||||
|
||||
if (bit_count < 16)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue