Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17646
b: refs/heads/master
c: e98cef1
h: refs/heads/master
v: v3
  • Loading branch information
Ville Syrj�l� authored and Linus Torvalds committed Jan 10, 2006
1 parent 37abd20 commit 37ff1d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a87d7fddbd7f46475842431d153d35bd03cf4f63
refs/heads/master: e98cef1e9e0ef0c5c02f6f3daa4da7956ad1c9ea
4 changes: 2 additions & 2 deletions trunk/drivers/video/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ static int aty_var_to_crtc(const struct fb_info *info,
crtc->horz_stretching &=
~(HORZ_STRETCH_RATIO | HORZ_STRETCH_LOOP | AUTO_HORZ_RATIO |
HORZ_STRETCH_MODE | HORZ_STRETCH_EN);
if (xres < par->lcd_width) {
if (xres < par->lcd_width && crtc->lcd_gen_cntl & LCD_ON) {
do {
/*
* The horizontal blender misbehaves when HDisplay is less than a
Expand Down Expand Up @@ -1044,7 +1044,7 @@ static int aty_var_to_crtc(const struct fb_info *info,
} while (0);
}

if (vdisplay < par->lcd_height) {
if (vdisplay < par->lcd_height && crtc->lcd_gen_cntl & LCD_ON) {
crtc->vert_stretching = (VERT_STRETCH_USE0 | VERT_STRETCH_EN |
(((vdisplay * (VERT_STRETCH_RATIO0 + 1)) / par->lcd_height) & VERT_STRETCH_RATIO0));

Expand Down

0 comments on commit 37ff1d3

Please sign in to comment.