linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: krzysztof.h1@poczta.fm
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH] s3c2410_fb: Fix line length calculation
Date: 18 Jan 2008 13:46:43 +0100	[thread overview]
Message-ID: <20080118124643.B8512118873@f31.poczta.interia.pl> (raw)

[-- Attachment #1: Type: TEXT/HTML, Size: 1555 bytes --]

   > Fix line length calculation. var-&gt;width is the size of the display in mm.  > We  > like to use the pixel size.  >   > Without this fix, dynamic (fbset) based resolution changes with  > s3c2410_fb  > don\'t work at all.  >   > Spotted by john cass &lt;johnpcass@yahoo.com&gt;  >   > Signed-off-by: Stefan Schmidt &lt;stefan@openmoko.org&gt;  > Signed-off-by: Harald Welte &lt;laforge@openmoko.org&gt;  > Acked-by: Ben Dooks &lt;ben-linux@fluff.org&gt;  > Acked-by: Arnaud Patard &lt;arnaud.patard@rtp-net.org&gt;  >   > Index: linux-2.6/drivers/video/s3c2410fb.c  > ===================================================================  > --- linux-2.6.orig/drivers/video/s3c2410fb.c  > +++ linux-2.6/drivers/video/s3c2410fb.c  > @@ -488,7 +488,7 @@  >    break;  >   }  >    > - info-&gt;fix.li
 ne_length = (var-&gt;width * var-&gt;bits_per_pixel) / 8;  > + info-&gt;fix.line_length = (var-&gt;xres_virtual * var-&gt;bits_per_pixel) / 8;  >    >   /* activate this new configuration */
   >    >    Please send this patch to Andrew Morton.   Your patch also helps with depth switching.  Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>  Regards, Krzysztof

<TABLE cellPadding="3" bgColor="#ffffff"><TBODY><TR><TD style="font: 12px Courier New, Courier, monotype.com; padding: 3px; background: #ffffff; color: #000000">
<BR>
----------------------------------------------------------------------
<BR>
Nadchodzi galaktyczna wojna!
<BR>
Sprawdz &gt;&gt; <A href="http://link.interia.pl/f1ce0">http://link.interia.pl/f1ce0</a></TD></TR></TBODY></TABLE>



[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 182 bytes --]

_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

             reply	other threads:[~2008-01-18 12:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-18 12:46 krzysztof.h1 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-01-14 14:40 [PATCH] s3c2410_fb: Fix line length calculation Stefan Schmidt

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=20080118124643.B8512118873@f31.poczta.interia.pl \
    --to=krzysztof.h1@poczta.fm \
    --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).