ioctl METEORGBRIG in bktr_core.c forgets to add 128 to value

PR:	59289
Submitted by:	Danovitsch@Vitsch.net
This commit is contained in:
Josh Paetzel 2017-06-27 03:57:31 +00:00
parent f7c7e94da3
commit a4d3d010b8

View File

@ -1545,7 +1545,7 @@ video_ioctl( bktr_ptr_t bktr, int unit, ioctl_cmd_t cmd, caddr_t arg, struct thr
break;
case METEORGBRIG: /* get brightness */
*(u_char *)arg = INB(bktr, BKTR_BRIGHT);
*(u_char *)arg = INB(bktr, BKTR_BRIGHT) + 128;
break;
case METEORSCSAT: /* set chroma saturation */