summaryrefslogtreecommitdiffstats
path: root/vidix
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-10 19:27:46 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-10 19:27:46 +0000
commit3e23146dc8866891cd55ee68efc81ae4f4bffaf1 (patch)
tree9fa277cce8f20a66439df9ed1512bec3159fdae1 /vidix
parentc5ba1bf7e3c9025d1a3739d651c83a34c7a3d50d (diff)
downloadmpv-3e23146dc8866891cd55ee68efc81ae4f4bffaf1.tar.bz2
mpv-3e23146dc8866891cd55ee68efc81ae4f4bffaf1.tar.xz
Fixed VIDIX color bug that was introduced when Radeon VIDIX driver
was synchronized with vidix.sf.net. The red color was saturating. Corrected value fixes the issue and restore the color to the level it used to have before synchronization. Meaning of the value remains unknow but was retrieved from register's value of a Radeon 9000 card, so it may need further testing. Patch by Guillaume Lecerf (foxcore at gmail dot com) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25345 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix')
-rw-r--r--vidix/radeon_vid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vidix/radeon_vid.c b/vidix/radeon_vid.c
index c82c9beb3e..aeff422a7e 100644
--- a/vidix/radeon_vid.c
+++ b/vidix/radeon_vid.c
@@ -1138,6 +1138,7 @@ static void radeon_vid_make_default(void)
besr.graphics_key_msk=0;
besr.graphics_key_clr=0;
besr.ckey_cntl = VIDEO_KEY_FN_TRUE|GRAPHIC_KEY_FN_TRUE|CMP_MIX_AND;
+ besr.merge_cntl |= 0x00000100; /* DISP_RGB_OFFSET_EN */
}
static int find_chip(unsigned chip_id)