linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Kern <alex.kern@gmx.de>
To: James Simmons <jsimmons@infradead.org>
Cc: fbdev <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: hw cursor is corrupted on Mach64
Date: Sun, 30 Nov 2003 21:53:21 +0100	[thread overview]
Message-ID: <200311302153.21125.alex.kern@gmx.de> (raw)
In-Reply-To: <200311211945.30242.alex.kern@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 929 bytes --]

This patch cures corruption of HW-cursor!

bye
Alex

Am Freitag, 21. November 2003 19:45 schrieb Alexander Kern:
> Hi,
>
> does know anybody, what is mask layout in
>
> void aty_set_cursor_shape(struct fb_info *info, u8 *dst, u8 *src, unsigned
> int width)
>
> I think, here is a corrupted mask! First scanlines are
> FF FF <- seems to be correct, but the rest A5 A5 A5 A5...
> And is it top - bottom or bottom - top ?
>
> Regards Alex
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Linux-fbdev-devel mailing list
> Linux-fbdev-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel

[-- Attachment #2: fbcon.patch --]
[-- Type: text/x-diff, Size: 837 bytes --]

--- fbcon.c.orig	2003-10-31 20:20:30.000000000 +0100
+++ fbcon.c	2003-11-30 21:43:24.000000000 +0100
@@ -1046,13 +1046,14 @@
                         dst = kmalloc(size, GFP_ATOMIC);
                         if (!dst)
                                 return;
+                        memset(dst, 0, size);
                         
                         cursor.set |= FB_CUR_SETSHAPE;
                         if (info->cursor.mask)
                                 kfree(info->cursor.mask);
                         info->cursor.mask = dst;
 
-                        for (i = 0; i < cur_height; i++) {
+                        for (i = 0; i < vc->vc_font.height; i++) {
                                 for (c = 0; c < s_pitch; c++)
                                         *dst++ = 0xff ^ *src++;
                         }       

  reply	other threads:[~2003-11-30 20:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-21 18:45 hw cursor is corrupted on Mach64 Alexander Kern
2003-11-30 20:53 ` Alexander Kern [this message]
2004-01-06 17:15   ` James Simmons
2004-01-06 17:15 ` James Simmons

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=200311302153.21125.alex.kern@gmx.de \
    --to=alex.kern@gmx.de \
    --cc=jsimmons@infradead.org \
    --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).