fix endianness problem sharing the videoram buffer
commit0da2ea1b37622ea6608031b5cd9dcca8f1b0e12d
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 23 Jan 2009 19:56:19 +0000 (23 19:56 +0000)
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 23 Jan 2009 19:56:19 +0000 (23 19:56 +0000)
tree2f1c16df46ad69dcc772442e308a617d002462bd
parent1a6f0dbcc0fe79e7bbd35c6e995fec24d32968af
fix endianness problem sharing the videoram buffer

[ The following text is in the "UTF-8" character set. ]

    [ Your display is set for the "koi8-r" character set.  ]

    [ Some characters may be displayed incorrectly. ]

This patch fixes vga rendering when the guest endianness differs from
the host endianness: in this case we can only share the buffer if the
bpp is 32 and we must change the pixelformat accordingly.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6413 c046a42c-6fe2-441c-8c8c-71466251a162
console.c
console.h
hw/vga.c