GBA Video: Fix _mix for 15-bit color

This commit is contained in:
Extrems 2015-10-28 02:02:39 -04:00 committed by Jeffrey Pfau
parent f4b44451b0
commit 6bead30504
1 changed files with 2 additions and 2 deletions

View File

@ -306,8 +306,8 @@ static unsigned _mix(int weightA, unsigned colorA, int weightB, unsigned colorB)
if (c & 0x0020) { if (c & 0x0020) {
c = (c & ~0x003F) | 0x001F; c = (c & ~0x003F) | 0x001F;
} }
if (c & 0x10000) { if (c & 0x8000) {
c = (c & ~0x1F800) | 0xF800; c = (c & ~0xF800) | 0x7C00;
} }
c = (c & 0x7C1F) | ((c >> 16) & 0x03E0); c = (c & 0x7C1F) | ((c >> 16) & 0x03E0);
#endif #endif