From a39d104d1b9d855aef91858759ca9a9e95149f66 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 11 Jul 2016 01:36:34 +0000 Subject: [PATCH] fix windows screenshots from r5458 / r5459 --- desmume/src/frontend/modules/ImageOut.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desmume/src/frontend/modules/ImageOut.cpp b/desmume/src/frontend/modules/ImageOut.cpp index 35001f654..16ff5473f 100644 --- a/desmume/src/frontend/modules/ImageOut.cpp +++ b/desmume/src/frontend/modules/ImageOut.cpp @@ -34,8 +34,9 @@ static u8* Convert15To24(const u16* src, int width, int height) for(int x=0;x(*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;