summaryrefslogtreecommitdiff
path: root/src/modules/evas/image_loaders/png/evas_image_load_png.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-08-08 17:18:45 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-08-08 17:18:46 -0400
commitcdb920ab084451c8395dea605d96d2bad277ce61 (patch)
tree5bc69959657f6dd611d2053dacde138c81d23091 /src/modules/evas/image_loaders/png/evas_image_load_png.c
parent9b7d71df79622246dc325ee70e0a7d23338eb9b8 (diff)
get rid of shadow variables
Summary: gl: add some EINA_FALLTHROUGH Reviewers: #reviewers, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9525
Diffstat (limited to '')
-rw-r--r--src/modules/evas/image_loaders/png/evas_image_load_png.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/evas/image_loaders/png/evas_image_load_png.c b/src/modules/evas/image_loaders/png/evas_image_load_png.c
index 4ffd5643c6..732bd94c6a 100644
--- a/src/modules/evas/image_loaders/png/evas_image_load_png.c
+++ b/src/modules/evas/image_loaders/png/evas_image_load_png.c
@@ -804,15 +804,15 @@ evas_image_load_file_data_png(void *loader_data,
804 //general case: 4 bytes pixel. 804 //general case: 4 bytes pixel.
805 if (pack_offset == sizeof(DATA32)) 805 if (pack_offset == sizeof(DATA32))
806 { 806 {
807 DATA32 *dst_ptr = (DATA32 *) surface; 807 DATA32 *dst_ptr2 = (DATA32 *) surface;
808 DATA32 *src_ptr2 = (DATA32 *) src_ptr; 808 DATA32 *src_ptr2 = (DATA32 *) src_ptr;
809 809
810 for (i = 0; i < h; i++) 810 for (i = 0; i < h; i++)
811 { 811 {
812 for (j = 0; j < w; j++) 812 for (j = 0; j < w; j++)
813 { 813 {
814 *dst_ptr = *src_ptr2; 814 *dst_ptr2 = *src_ptr2;
815 ++dst_ptr; 815 ++dst_ptr2;
816 src_ptr2 += scale_ratio; 816 src_ptr2 += scale_ratio;
817 } 817 }
818 src_ptr2 += scale_ratio * image_w; 818 src_ptr2 += scale_ratio * image_w;
@@ -820,15 +820,15 @@ evas_image_load_file_data_png(void *loader_data,
820 } 820 }
821 else 821 else
822 { 822 {
823 unsigned char *dst_ptr = surface; 823 unsigned char *dst_ptr2 = surface;
824 824
825 for (i = 0; i < h; i++) 825 for (i = 0; i < h; i++)
826 { 826 {
827 for (j = 0; j < w; j++) 827 for (j = 0; j < w; j++)
828 { 828 {
829 for (k = 0; k < (int)pack_offset; k++) 829 for (k = 0; k < (int)pack_offset; k++)
830 dst_ptr[k] = src_ptr[k + scale_ratio * j * pack_offset]; 830 dst_ptr2[k] = src_ptr[k + scale_ratio * j * pack_offset];
831 dst_ptr += pack_offset; 831 dst_ptr2 += pack_offset;
832 } 832 }
833 src_ptr += scale_ratio * image_w * pack_offset; 833 src_ptr += scale_ratio * image_w * pack_offset;
834 } 834 }