This commit is contained in:
Lior Halphon 2022-07-25 19:11:41 +03:00
parent ae14fcfbd7
commit 43e1e85179
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ uint32_t GB_convert_rgb15(GB_gameboy_t *gb, uint16_t color, bool for_border)
if (gb->color_correction_mode != GB_COLOR_CORRECTION_CORRECT_CURVES) {
uint8_t new_r, new_g, new_b;
if (agb) {
new_g = (g * 5 + b * 1) / 6;
new_g = (g * 5 + b) / 6;
}
else {
new_g = (g * 3 + b) / 4;