[SeaBIOS] [PATCH] vgabios: Fix stdvga_perform_gray_scale_summing().
Kevin O'Connor
kevin at koconnor.net
Sat Mar 9 19:09:27 CET 2013
Fix conversion error that resulted in
stdvga_perform_gray_scale_summing not actually writing the new results
back.
Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
---
vgasrc/stdvga.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c
index a29d6d4..1dd947e 100644
--- a/vgasrc/stdvga.c
+++ b/vgasrc/stdvga.c
@@ -123,6 +123,7 @@ stdvga_perform_gray_scale_summing(u16 start, u16 count)
u16 intensity = ((77 * rgb[0] + 151 * rgb[1] + 28 * rgb[2]) + 0x80) >> 8;
if (intensity > 0x3f)
intensity = 0x3f;
+ rgb[0] = rgb[1] = rgb[2] = intensity;
stdvga_dac_write(GET_SEG(SS), rgb, i, 1);
}
--
1.7.11.7
More information about the SeaBIOS
mailing list