[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 3/3] correct VNC_DIRTY_WORDS on 64 bit machine
From: |
Wen Congyang |
Subject: |
[Qemu-devel] [PATCH v2 3/3] correct VNC_DIRTY_WORDS on 64 bit machine |
Date: |
Thu, 03 Mar 2011 14:49:17 +0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100413 Fedora/3.0.4-2.fc13 Thunderbird/3.0.4 |
VNC_DIRTY_WORDS is wrong on 64 bit long machine.
Signed-off-by: Wen Congyang <address@hidden>
---
ui/vnc.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ui/vnc.h b/ui/vnc.h
index 8a1e7b9..5fc54e5 100644
--- a/ui/vnc.h
+++ b/ui/vnc.h
@@ -81,7 +81,7 @@ typedef void VncSendHextileTile(VncState *vs,
#define VNC_MAX_WIDTH 2560
#define VNC_MAX_HEIGHT 2048
-#define VNC_DIRTY_WORDS (VNC_MAX_WIDTH / (16 * BITS_PER_LONG))
+#define VNC_DIRTY_WORDS (DIV_ROUND_UP(VNC_MAX_WIDTH, (16 * BITS_PER_LONG)))
#define VNC_STAT_RECT 64
#define VNC_STAT_COLS (VNC_MAX_WIDTH / VNC_STAT_RECT)
--
1.7.1
- [Qemu-devel] Re: [PATCH RESEND 2/2] vnc: Fix heap corruption, (continued)
- [Qemu-devel] Re: [PATCH RESEND 2/2] vnc: Fix heap corruption, Stefan Weil, 2011/03/02
- Re: [Qemu-devel] Re: [PATCH RESEND 2/2] vnc: Fix heap corruption, Peter Maydell, 2011/03/02
- Re: [Qemu-devel] Re: [PATCH RESEND 2/2] vnc: Fix heap corruption, Stefan Weil, 2011/03/02
- Re: [Qemu-devel] Re: [PATCH RESEND 2/2] vnc: Fix heap corruption, Stefan Weil, 2011/03/02
- Re: [Qemu-devel] Re: [PATCH RESEND 2/2] vnc: Fix heap corruption, Wen Congyang, 2011/03/02
- Re: [Qemu-devel] Re: [PATCH RESEND 2/2] vnc: Fix heap corruption, Peter Maydell, 2011/03/02
[Qemu-devel] Re: [PATCH RESEND v2 1/2] fix vnc regression, Corentin Chary, 2011/03/02
[Qemu-devel] [PATCH 3/3] correct VNC_DIRTY_WORDS on 64 bit machine, Wen Congyang, 2011/03/02