From cf13e7ffc3ec767ee4b839466730a7fd0149091b Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Mon, 29 Oct 2007 22:16:41 +0000 Subject: [PATCH] Fix access of unaligned memory. SVN revision: 32211 --- .../engines/software_16/evas_soft16_scanline_fill.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/legacy/evas/src/modules/engines/software_16/evas_soft16_scanline_fill.c b/legacy/evas/src/modules/engines/software_16/evas_soft16_scanline_fill.c index fa2d00268a..42e1c51e74 100644 --- a/legacy/evas/src/modules/engines/software_16/evas_soft16_scanline_fill.c +++ b/legacy/evas/src/modules/engines/software_16/evas_soft16_scanline_fill.c @@ -23,6 +23,14 @@ _soft16_scanline_fill_solid_solid(DATA16 *dst, int size, DATA16 rgb565) DATA32 rgb565_double; start = dst; + + if ((long)start & 0x2) + { + *start = rgb565; + start++; + size--; + } + end = start + (size & ~7); rgb565_double = (rgb565 << 16) | rgb565;