fix for rbga8 decoding that causes problems in nsmbw

fix for screen clearing in opengl and d3d

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5749 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Rodolfo Osvaldo Bogado
2010-06-19 21:12:09 +00:00
parent 208c33f09c
commit 4ab0e4b8a0
3 changed files with 13 additions and 10 deletions

View File

@ -626,9 +626,9 @@ inline void decodebytesARGB8_4(u32 *dst, const u16 *src, const u16 *src2)
inline void decodebytesARGB8_4ToRgba(u32 *dst, const u16 *src, const u16 *src2)
{
for (int x = 0; x < 4; x++) {
dst[x] = (src2[x] << 8) | src[x] >> 8 | (src[x] & 0xF) << 24;
}
for (int x = 0; x < 4; x++) {
dst[x] = ((src[x] & 0xFF) << 24) | ((src[x] & 0xFF00)>>8) | (src2[x] << 8);
}
}
inline u32 makecol(int r, int g, int b, int a)