aboutsummaryrefslogtreecommitdiffstats
path: root/console.h
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-09-10 16:11:22 +0200
committerDavid 'Digit' Turner <digit@android.com>2010-09-13 00:30:35 -0700
commitf52506f4827dfa6da47730c4756a984b05db6dda (patch)
treeb44a329946de9bed358d23c12dbe905999bf14c9 /console.h
parent025c32ffcd9f682cd761a836fe8798738d1648f2 (diff)
downloadexternal_qemu-f52506f4827dfa6da47730c4756a984b05db6dda.zip
external_qemu-f52506f4827dfa6da47730c4756a984b05db6dda.tar.gz
external_qemu-f52506f4827dfa6da47730c4756a984b05db6dda.tar.bz2
upstream: console changes.
Diffstat (limited to 'console.h')
-rw-r--r--console.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/console.h b/console.h
index df1e30b..b8e1234 100644
--- a/console.h
+++ b/console.h
@@ -184,8 +184,7 @@ struct DisplayState {
struct DisplayChangeListener* listeners;
void (*mouse_set)(int x, int y, int on);
- void (*cursor_define)(int width, int height, int bpp, int hot_x, int hot_y,
- uint8_t *image, uint8_t *mask);
+ void (*cursor_define)(QEMUCursor *cursor);
struct DisplayState *next;
};
@@ -197,11 +196,7 @@ DisplaySurface* qemu_create_displaysurface_from(int width, int height, int bpp,
PixelFormat qemu_different_endianness_pixelformat(int bpp);
PixelFormat qemu_default_pixelformat(int bpp);
-extern struct DisplayAllocator default_allocator;
DisplayAllocator *register_displayallocator(DisplayState *ds, DisplayAllocator *da);
-DisplaySurface* defaultallocator_create_displaysurface(int width, int height);
-DisplaySurface* defaultallocator_resize_displaysurface(DisplaySurface *surface, int width, int height);
-void defaultallocator_free_displaysurface(DisplaySurface *surface);
static inline DisplaySurface* qemu_create_displaysurface(DisplayState *ds, int width, int height)
{
@@ -228,7 +223,8 @@ static inline int is_surface_bgr(DisplaySurface *surface)
static inline int is_buffer_shared(DisplaySurface *surface)
{
- return (!(surface->flags & QEMU_ALLOCATED_FLAG));
+ return (!(surface->flags & QEMU_ALLOCATED_FLAG) &&
+ !(surface->flags & QEMU_REALPIXELS_FLAG));
}
static inline void register_displaychangelistener(DisplayState *ds, DisplayChangeListener *dcl)
@@ -358,7 +354,8 @@ void vga_hw_text_update(console_ch_t *chardata);
int is_graphic_console(void);
int is_fixedsize_console(void);
-CharDriverState *text_console_init(const char *p);
+CharDriverState *text_console_init(QemuOpts *opts);
+CharDriverState* text_console_init_compat(const char *label, const char *p);
void text_consoles_set_display(DisplayState *ds);
void console_select(unsigned int index);
void console_color_init(DisplayState *ds);
@@ -383,4 +380,8 @@ char *vnc_display_local_addr(DisplayState *ds);
/* curses.c */
void curses_display_init(DisplayState *ds, int full_screen);
+#ifdef CONFIG_ANDROID
+void android_display_init_from(int width, int height, int rotation, int bpp);
+#endif
+
#endif