linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <syrjala@sci.fi>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: [PATCH] atyfb: fix pan with doublescan
Date: Tue, 10 Feb 2004 20:28:22 +0200	[thread overview]
Message-ID: <20040210182822.GA13022@sci.fi> (raw)

[-- 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)

                 reply	other threads:[~2004-02-10 18:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040210182822.GA13022@sci.fi \
    --to=syrjala@sci.fi \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).