diff options
author | Ville Syrjälä <syrjala@sci.fi> | 2006-01-09 23:53:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:48 -0500 |
commit | e98cef1e9e0ef0c5c02f6f3daa4da7956ad1c9ea (patch) | |
tree | 8aa0f1d9ae9e6750fa7899af1bd902591e6e70b1 /drivers/video/aty | |
parent | a87d7fddbd7f46475842431d153d35bd03cf4f63 (diff) |
[PATCH] atyfb: Don't stretch with CRT
The overlay on 3D Rage LT Pro doesn't work correctly if stretching is
enabled when using only a CRT.
Signed-off-by: Ville Syrjälä <syrjala@sci.fi>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/aty')
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 845da14f56d3..ea3eebcb0236 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -982,7 +982,7 @@ static int aty_var_to_crtc(const struct fb_info *info, | |||
982 | crtc->horz_stretching &= | 982 | crtc->horz_stretching &= |
983 | ~(HORZ_STRETCH_RATIO | HORZ_STRETCH_LOOP | AUTO_HORZ_RATIO | | 983 | ~(HORZ_STRETCH_RATIO | HORZ_STRETCH_LOOP | AUTO_HORZ_RATIO | |
984 | HORZ_STRETCH_MODE | HORZ_STRETCH_EN); | 984 | HORZ_STRETCH_MODE | HORZ_STRETCH_EN); |
985 | if (xres < par->lcd_width) { | 985 | if (xres < par->lcd_width && crtc->lcd_gen_cntl & LCD_ON) { |
986 | do { | 986 | do { |
987 | /* | 987 | /* |
988 | * The horizontal blender misbehaves when HDisplay is less than a | 988 | * The horizontal blender misbehaves when HDisplay is less than a |
@@ -1044,7 +1044,7 @@ static int aty_var_to_crtc(const struct fb_info *info, | |||
1044 | } while (0); | 1044 | } while (0); |
1045 | } | 1045 | } |
1046 | 1046 | ||
1047 | if (vdisplay < par->lcd_height) { | 1047 | if (vdisplay < par->lcd_height && crtc->lcd_gen_cntl & LCD_ON) { |
1048 | crtc->vert_stretching = (VERT_STRETCH_USE0 | VERT_STRETCH_EN | | 1048 | crtc->vert_stretching = (VERT_STRETCH_USE0 | VERT_STRETCH_EN | |
1049 | (((vdisplay * (VERT_STRETCH_RATIO0 + 1)) / par->lcd_height) & VERT_STRETCH_RATIO0)); | 1049 | (((vdisplay * (VERT_STRETCH_RATIO0 + 1)) / par->lcd_height) & VERT_STRETCH_RATIO0)); |
1050 | 1050 | ||