Fix vga_screen_dump_blank() PPM generation
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 25 May 2009 21:20:05 +0000 (18:20 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Jun 2009 20:52:38 +0000 (15:52 -0500)
commitb64803a90e0b6be8fb724322b7163399b7641e68
tree0354f19d12c65fa1275b6361a766130a570723b3
parent9895acbbc8fec8e8fd2cb82b2c16b12313e3c6d8
Fix vga_screen_dump_blank() PPM generation

vga_screen_dump_blank() was not generating a valid PPM file: the width of the
image made no sense (why it was multiplied by sizeof(uint32_t)?), and there was
only one sample per pixel, instead of three.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/vga.c