evas: @fix convert to 24bits so dst_jump is used properly.

in all other convert functions, dst_jump is provided in pixesl and
multiplied by the number of bytes-per-pixel either explicitly or
implicitly by using a different type for dst pointer (DATA16,
DATA32...).

As in 24 bits we use DATA8 we must explicitly multiply dst_jump by 3.
This commit is contained in:
Gustavo Sverzut Barbieri 2014-03-06 01:08:44 -03:00
parent bf2abf12b4
commit e4c5d75993
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ evas_common_convert_rgba_to_24bpp_rgb_888(DATA32 *src, DATA8 *dst, int src_jump,
dst_ptr+=3;
}
src_ptr += src_jump;
dst_ptr += dst_jump;
dst_ptr += dst_jump * 3;
}
return;
}
@ -53,7 +53,7 @@ evas_common_convert_rgba_to_24bpp_rgb_666(DATA32 *src, DATA8 *dst, int src_jump,
dst_ptr+=3;
}
src_ptr += src_jump;
dst_ptr += dst_jump;
dst_ptr += dst_jump * 3;
}
return;
}
@ -79,7 +79,7 @@ evas_common_convert_rgba_to_24bpp_bgr_888(DATA32 *src, DATA8 *dst, int src_jump,
dst_ptr+=3;
}
src_ptr += src_jump;
dst_ptr += dst_jump;
dst_ptr += dst_jump * 3;
}
return;
}