Minor fixes

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3369 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2001-12-07 10:48:17 +00:00
parent 93789d1e4d
commit 002561f996
1 changed files with 4 additions and 1 deletions

View File

@ -934,10 +934,13 @@ static ssize_t radeon_vid_write(struct file *file, const char *buf, size_t count
{
long brightness;
brightness=simple_strtol(&buf[strlen(PARAM_BRIGHTNESS)],NULL,10);
if(brightness >= -64 && brightness <= 63) besr.brightness = brightness;
if(brightness >= -64 && brightness <= 63)
{
besr.brightness = brightness;
OUTREG(OV0_COLOUR_CNTL, (brightness & 0x7f) |
(besr.saturation << 8) |
(besr.saturation << 16));
}
}
else
if(memcmp(buf,PARAM_SATURATION,min(count,strlen(PARAM_SATURATION))) == 0)