mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user