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@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); }