Allocate enough vram for 24-bit planes.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7086 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
5579c7f37e
commit
520860ef61
2
hw/tcx.c
2
hw/tcx.c
@ -506,7 +506,7 @@ void tcx_init(target_phys_addr_t addr, int vram_size, int width, int height,
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user