* [PATCH] atyfb: fix pan with doublescan
@ 2004-02-10 18:28 Ville Syrjälä
0 siblings, 0 replies; only message in thread
From: Ville Syrjälä @ 2004-02-10 18:28 UTC (permalink / raw)
To: linux-fbdev-devel
[-- Attachment #1: Type: text/plain, Size: 119 bytes --]
This patch fixes panning with doublescan in atyfb.
--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
[-- Attachment #2: atyfb_dblscan_pan.patch --]
[-- Type: text/plain, Size: 515 bytes --]
--- linux-2.4.24/drivers/video/aty/atyfb_base.c.orig 2003-11-28 20:26:20.000000000 +0200
+++ linux-2.4.24/drivers/video/aty/atyfb_base.c 2004-02-10 20:15:15.000000000 +0200
@@ -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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-10 18:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-10 18:28 [PATCH] atyfb: fix pan with doublescan Ville Syrjälä
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).