From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] ioemu: fix xenfb slow case update
Date: Fri, 29 Feb 2008 15:26:22 +0000 [thread overview]
Message-ID: <20080229152622.GC8268@implementation.uk.xensource.com> (raw)
ioemu: fix xenfb slow case update
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
diff -r 067d8f19e78a tools/ioemu/hw/xenfb.c
--- a/tools/ioemu/hw/xenfb.c Thu Feb 28 13:55:37 2008 +0000
+++ b/tools/ioemu/hw/xenfb.c Fri Feb 29 15:25:17 2008 +0000
@@ -1072,7 +1072,7 @@
/* A convenient function for munging pixels between different depths */
#define BLT(SRC_T,DST_T,RLS,GLS,BLS,RRS,GRS,BRS,RM,GM,BM) \
- for (line = y ; line < h ; line++) { \
+ for (line = y ; line < (y+h) ; line++) { \
SRC_T *src = (SRC_T *)(xenfb->pixels \
+ (line * xenfb->row_stride) \
+ (x * xenfb->depth / 8)); \
@@ -1080,7 +1080,7 @@
+ (line * xenfb->ds->linesize) \
+ (x * xenfb->ds->depth / 8)); \
int col; \
- for (col = x ; col < w ; col++) { \
+ for (col = x ; col < (x+w) ; col++) { \
*dst = (((*src >> RRS) & RM) << RLS) | \
(((*src >> GRS) & GM) << GLS) | \
(((*src >> GRS) & BM) << BLS); \
next reply other threads:[~2008-02-29 15:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-29 15:26 Samuel Thibault [this message]
2008-02-29 17:37 ` [PATCH2] ioemu: fix xenfb slow case update Samuel Thibault
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=20080229152622.GC8268@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.