diff options
author | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-23 19:56:19 +0000 |
---|---|---|
committer | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-23 19:56:19 +0000 |
commit | f93101fce9e9f6c7ce92b36cf9cca9cf1cc1042f (patch) | |
tree | 2f1c16df46ad69dcc772442e308a617d002462bd /console.h | |
parent | f4363b082db64e60d3a09389c3dae2826f1b4db3 (diff) | |
download | qemu-f93101fce9e9f6c7ce92b36cf9cca9cf1cc1042f.tar.gz qemu-f93101fce9e9f6c7ce92b36cf9cca9cf1cc1042f.tar.bz2 qemu-f93101fce9e9f6c7ce92b36cf9cca9cf1cc1042f.zip |
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
Diffstat (limited to 'console.h')
-rw-r--r-- | console.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -134,6 +134,8 @@ DisplaySurface* qemu_resize_displaysurface(DisplaySurface *surface, DisplaySurface* qemu_create_displaysurface_from(int width, int height, int bpp, int linesize, uint8_t *data); void qemu_free_displaysurface(DisplaySurface *surface); +PixelFormat qemu_different_endianness_pixelformat(int bpp); +PixelFormat qemu_default_pixelformat(int bpp); static inline int is_buffer_shared(DisplaySurface *surface) { |