diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2011-03-16 13:33:30 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-03-22 08:39:11 -0500 |
commit | 0ee00270d84ff0881071c5d724ccbb8630e0cf37 (patch) | |
tree | 223fc6c884ff87e4bbadf64661a1032385a5d0be /console.h | |
parent | 42b9fea26d89b17df6d90f99faac7b52bf7f8551 (diff) | |
download | qemu-0ee00270d84ff0881071c5d724ccbb8630e0cf37.tar.gz qemu-0ee00270d84ff0881071c5d724ccbb8630e0cf37.tar.bz2 qemu-0ee00270d84ff0881071c5d724ccbb8630e0cf37.zip |
Consolidate DisplaySurface allocation in qemu_alloc_display()
This removes various code duplication from console.e and sdl.c
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'console.h')
-rw-r--r-- | console.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -189,6 +189,8 @@ void register_displaystate(DisplayState *ds); DisplayState *get_displaystate(void); DisplaySurface* qemu_create_displaysurface_from(int width, int height, int bpp, int linesize, uint8_t *data); +void qemu_alloc_display(DisplaySurface *surface, int width, int height, + int linesize, PixelFormat pf, int newflags); PixelFormat qemu_different_endianness_pixelformat(int bpp); PixelFormat qemu_default_pixelformat(int bpp); |