all repos — mgba @ ed6d55bc4626ef9c3e1543fa873b1af7ff83aef9

mGBA Game Boy Advance Emulator

GB Video: Fix color scaling in AGB mode
Vicki Pfau vi@endrift.com
Wed, 02 Oct 2019 18:05:54 -0700
commit

ed6d55bc4626ef9c3e1543fa873b1af7ff83aef9

parent

68af1131aa92c1f51d1d39c17aa045a693ec1150

2 files changed, 4 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -34,6 +34,7 @@ - GB Audio: Sample inactive channels (fixes mgba.io/i/1455, mgba.io/i/1456)

- GB Memory: Better emulate 0xFEA0 region on DMG, MGB and AGB - GB Video: Fix mode 0 window edge case (fixes mgba.io/i/1519) - GB Audio: Fix channel 4 volume (fixes mgba.io/i/1529) + - GB Video: Fix color scaling in AGB mode Other fixes: - Qt: Fix some Qt display driver race conditions - Core: Improved lockstep driver reliability (Le Hoang Quyen)
M src/gb/renderers/software.csrc/gb/renderers/software.c

@@ -461,8 +461,11 @@ b /= 31;

color = mColorFrom555(r | (g << 5) | (b << 10)); #else r >>= 2; + r += r >> 4; g >>= 2; + g += g >> 4; b >>= 2; + b += b >> 4; color = r | (g << 8) | (b << 16); #endif }