all repos — mgba @ 6bead30504ac413e8c13d70621836ecd3f81016e

mGBA Game Boy Advance Emulator

GBA Video: Fix _mix for 15-bit color
Extrems metaradil@gmail.com
Wed, 28 Oct 2015 02:02:39 -0400
commit

6bead30504ac413e8c13d70621836ecd3f81016e

parent

f4b44451b012ead55e5cc7ed93672ed2cb1231fb

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/gba/renderers/software-private.hsrc/gba/renderers/software-private.h

@@ -306,8 +306,8 @@ }

if (c & 0x0020) { c = (c & ~0x003F) | 0x001F; } - if (c & 0x10000) { - c = (c & ~0x1F800) | 0xF800; + if (c & 0x8000) { + c = (c & ~0xF800) | 0x7C00; } c = (c & 0x7C1F) | ((c >> 16) & 0x03E0); #endif