jypark pushed a commit to branch master.
commit ccea9eca4171d53d39a0355aec84c2f0608be725
Author: Jiyoun Park <[email protected]>
Date: Mon Apr 15 13:45:18 2013 +0900
Evas: fix gif bug related with scale down decode.
---
ChangeLog | 4 ++++
NEWS | 3 ++-
src/modules/evas/loaders/gif/evas_image_load_gif.c | 6 +++---
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f84d83c..621e212 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2013-04-14 Jiyoun Park
+ * Evas: fix gif bug related with scale down decode.
+
+2013-04-14 Jiyoun Park
+
* Evas: fix gif decoding bug related with background color.
2013-04-14 ChunEon Park
diff --git a/NEWS b/NEWS
index 21a95a3..f163c45 100644
--- a/NEWS
+++ b/NEWS
@@ -240,5 +240,6 @@ Fixes:
* Edje entry: When cursor is located to each edge, entry now doesn't grab
events for cursor movement.
* Evas map: don't be crashed even if image size is 0.
* Evas: Don't update evas update area by the clipper if the image obj
visible is changed.
- * Evas: fix gif decoding bug related with background color.
+ * Evas: fix gif decoding bug related with background color.
+ * Evas: fix gif bug related with scale down decode.
diff --git a/src/modules/evas/loaders/gif/evas_image_load_gif.c
b/src/modules/evas/loaders/gif/evas_image_load_gif.c
index d5eb965..8645c80 100644
--- a/src/modules/evas/loaders/gif/evas_image_load_gif.c
+++ b/src/modules/evas/loaders/gif/evas_image_load_gif.c
@@ -548,9 +548,9 @@ _evas_image_load_frame_image_data(Image_Entry *ie,
GifFileType *gif, Image_Entry
}
else
{
- r = cmap->Colors[rows[i1][j1]].Red;
- g = cmap->Colors[rows[i1][j1]].Green;
- b = cmap->Colors[rows[i1][j1]].Blue;
+ r = cmap->Colors[rows[i1][j1 *
scale_ratio]].Red;
+ g = cmap->Colors[rows[i1][j1 *
scale_ratio]].Green;
+ b = cmap->Colors[rows[i1][j1 *
scale_ratio]].Blue;
*ptr++ = ARGB_JOIN(0xff, r, g, b);
}
}
--
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter