Fix vga_screen_dump_blank() PPM generation
commit41de90f32c39cb1da68f78815aac2021ae868d9b
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 25 May 2009 21:20:05 +0000 (25 18:20 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Jun 2009 22:46:59 +0000 (16 17:46 -0500)
tree9d9747a7c8b80d9a94077c56ef79e7665d323964
parent3e6b53eb32400a9ef172b34a6168ec563c9db74e
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.

(cherry picked from commit 77d4db015c99ce7083fd5b33f0c650176fe8bc98)

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