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 | ffe8b821a1ac7d3318b00004e37f13615ff60a9f (patch) | |
tree | 223fc6c884ff87e4bbadf64661a1032385a5d0be /console.h | |
parent | 6aae3df15dc31f3635efe6e4d4605a6f16888a1b (diff) |
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); |