diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-03-09 13:00:40 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-03-09 13:00:40 -0500 |
commit | 9cba2b3d22db7da313dfec444eb6030459d239c4 (patch) | |
tree | 5b375b4ba399ae4d891c119e44f714c97584a1a7 /vgasrc/stdvga.c | |
parent | 70c94dd59bb2777a8e500be72847041d811f51d0 (diff) | |
download | seabios-9cba2b3d22db7da313dfec444eb6030459d239c4.tar.gz |
vgabios: Fix stdvga_perform_gray_scale_summing().
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>
Diffstat (limited to 'vgasrc/stdvga.c')
-rw-r--r-- | vgasrc/stdvga.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c index a29d6d47..1dd947e2 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); } |