All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ioemu: fix xenfb slow case update
@ 2008-02-29 15:26 Samuel Thibault
  2008-02-29 17:37 ` [PATCH2] " Samuel Thibault
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Thibault @ 2008-02-29 15:26 UTC (permalink / raw)
  To: xen-devel

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);                          \

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-29 17:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-29 15:26 [PATCH] ioemu: fix xenfb slow case update Samuel Thibault
2008-02-29 17:37 ` [PATCH2] " Samuel Thibault

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.