atyfb: fix pan with doublescan
PATCH 1/1 atyfb: fix pan with doublescan
This patch fixes panning with doublescan in atyfb.
Signature · 3 lines
Ville Syrjälä [email protected] http://www.sci.fi/~syrjala/
drivers/video/aty/atyfb_base.c renamed from drivers/video/aty/atyfb_base.c.orig +2 -0
@@ -1475,6 +1475,8 @@ xres = (((par->crtc.h_tot_disp>>16 ) &0xff )+1 )*8 ; yres = ((par->crtc.v_tot_disp>>16 ) &0x7ff )+1 ; +if (par->crtc.gen_cntl &CRTC_DBL_SCAN_EN ) + yres >>=1 ; xoffset = (var->xoffset+7 ) & ~7 ; yoffset = var->yoffset;if (xoffset+xres > par->crtc.vxres || yoffset+yres > par->crtc.vyres)