From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: jjaakkol@cs.Helsinki.FI
Subject: Re: [PATCH] fix for using >16 pixel wide font in fb console
Date: Mon, 8 Nov 2004 18:34:26 +0800 [thread overview]
Message-ID: <200411081834.26877.adaplas@hotpop.com> (raw)
In-Reply-To: <200411081816.15633.adaplas@hotpop.com>
On Monday 08 November 2004 18:16, Antonino A. Daplas wrote:
> On Monday 08 November 2004 08:17, Jani Jaakkola wrote:
> PS: Diff is against 2.6.10-rc1-mm3
And I forgot to attach the patch :-)
Tony
diff -Nru a/drivers/video/softcursor.c b/drivers/video/softcursor.c
--- a/drivers/video/softcursor.c 2004-10-27 16:28:36 +08:00
+++ b/drivers/video/softcursor.c 2004-11-08 18:10:58 +08:00
@@ -28,16 +28,17 @@
if (info->state != FBINFO_STATE_RUNNING)
return 0;
- src = kmalloc(64 + sizeof(struct fb_image), GFP_ATOMIC);
+ s_pitch = (cursor->image.width + 7) >> 3;
+ dsize = s_pitch * cursor->image.height;
+ src = kmalloc(dsize + sizeof(struct fb_image), GFP_ATOMIC);
if (!src)
return -ENOMEM;
- image = (struct fb_image *) (src + 64);
+ image = (struct fb_image *) (src + dsize);
*image = cursor->image;
- s_pitch = (image->width + 7) >> 3;
- dsize = s_pitch * image->height;
d_pitch = (s_pitch + scan_align) & ~scan_align;
+
size = d_pitch * image->height + buf_align;
size &= ~buf_align;
dst = fb_get_buffer_offset(info, &info->pixmap, size);
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
prev parent reply other threads:[~2004-11-08 10:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-08 0:17 [PATCH] fix for using >16 pixel wide font in fb console Jani Jaakkola
2004-11-08 10:16 ` Antonino A. Daplas
2004-11-08 10:34 ` Antonino A. Daplas [this message]
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=200411081834.26877.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=jjaakkol@cs.Helsinki.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.