Commit 520860ef61705ef8bedb146285d067c1f8b7aabe

Authored by pbrook
1 parent 5579c7f3

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
Showing 1 changed file with 1 additions and 1 deletions
hw/tcx.c
@@ -506,7 +506,7 @@ void tcx_init(target_phys_addr_t addr, int vram_size, int width, int height, @@ -506,7 +506,7 @@ void tcx_init(target_phys_addr_t addr, int vram_size, int width, int height,
506 int size; 506 int size;
507 uint8_t *vram_base; 507 uint8_t *vram_base;
508 508
509 - vram_offset = qemu_ram_alloc(vram_size); 509 + vram_offset = qemu_ram_alloc(vram_size * (1 + 4 + 4));
510 vram_base = qemu_get_ram_ptr(vram_offset); 510 vram_base = qemu_get_ram_ptr(vram_offset);
511 511
512 s = qemu_mallocz(sizeof(TCXState)); 512 s = qemu_mallocz(sizeof(TCXState));