[Qemu-devel] [PATCH 22/29] vmsvga: Increase size of cursor AND bitmask

Liran Alon posted 29 patches 7 years, 2 months ago
[Qemu-devel] [PATCH 22/29] vmsvga: Increase size of cursor AND bitmask
Posted by Liran Alon 7 years, 2 months ago
From: Leonid Shatz <leonid.shatz@oracle.com>

Some guests are using 64x64 32bpp cursor pixel array, the old size of 1024 integers
was not sufficient to store such large masks.

Signed-off-by: Leonid Shatz <leonid.shatz@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Liran Alon <liran.alon@oracle.com>
---
 hw/display/vmware_vga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
index ef2c8bdbf5be..46f03fe90ac0 100644
--- a/hw/display/vmware_vga.c
+++ b/hw/display/vmware_vga.c
@@ -620,7 +620,7 @@ struct vmsvga_cursor_definition_s {
     int hot_y;
     uint32_t and_mask_bpp; // Value must be 1 or equal to BITS_PER_PIXEL
     uint32_t xor_mask_bpp; // Value must be 1 or equal to BITS_PER_PIXEL
-    uint32_t and_mask[1024];
+    uint32_t and_mask[4096];
     uint32_t xor_mask[4096];
 };
 
-- 
1.9.1