fix windows screenshots from r5458 / r5459

This commit is contained in:
zeromus 2016-07-11 01:36:34 +00:00
parent 11673c7a88
commit a39d104d1b
1 changed files with 3 additions and 2 deletions

View File

@ -34,8 +34,9 @@ static u8* Convert15To24(const u16* src, int width, int height)
for(int x=0;x<width;x++)
{
u32 dst = ConvertColor555To8888Opaque<true>(*src++);
*(u32 *)tmp_inc[x] = (dst & 0x00FFFFFF) | (*(u32 *)tmp_inc & 0xFF000000);
tmp_inc += 3;
*tmp_inc++ = dst&0xFF;
*tmp_inc++ = (dst>>8)&0xFF;
*tmp_inc++ = (dst>>16)&0xFF;
}
}
return tmp_buffer;