Skip to contentSkip to conversation

[7086] Allocate enough vram for 24-bit planes.

Qemu-devel Paul Brook 1 participant 1 message Apr 11, 2009

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 7086

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7086
Author:   pbrook
Date:     2009-04-11 16:55:44 +0000 (Sat, 11 Apr 2009)

Log Message:
-----------
Allocate enough vram for 24-bit planes.

Modified Paths:
--------------
trunk/hw/tcx.c

Modified: trunk/hw/tcx.c
===================================================================

hw/tcx.c +1 -1
@@ -506,7 +506,7 @@
     int size;
     uint8_t *vram_base;
 
-    vram_offset = qemu_ram_alloc(vram_size);
+    vram_offset = qemu_ram_alloc(vram_size * (1 + 4 + 4));
     vram_base = qemu_get_ram_ptr(vram_offset);
 
     s = qemu_mallocz(sizeof(TCXState));