Fix access of unaligned memory.

SVN revision: 32211
This commit is contained in:
Gustavo Sverzut Barbieri 2007-10-29 22:16:41 +00:00
parent 56bd752741
commit cf13e7ffc3
1 changed files with 8 additions and 0 deletions

View File

@ -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;