summaryrefslogtreecommitdiff
path: root/console.h
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2011-03-16 13:33:30 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-03-22 08:39:11 -0500
commitffe8b821a1ac7d3318b00004e37f13615ff60a9f (patch)
tree223fc6c884ff87e4bbadf64661a1032385a5d0be /console.h
parent6aae3df15dc31f3635efe6e4d4605a6f16888a1b (diff)
downloadqemu-ffe8b821a1ac7d3318b00004e37f13615ff60a9f.tar.gz
qemu-ffe8b821a1ac7d3318b00004e37f13615ff60a9f.tar.bz2
qemu-ffe8b821a1ac7d3318b00004e37f13615ff60a9f.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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/console.h b/console.h
index f4e4741091..711895e2d7 100644
--- a/console.h
+++ b/console.h
@@ -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);