static DisplaySurface *qemu_create_dummy_surface(void)

{

    static const char msg[] =

        "This VM has no graphic display device.";

    DisplaySurface *surface = qemu_create_displaysurface(640, 480);

    pixman_color_t bg = color_table_rgb[0][COLOR_BLACK];

    pixman_color_t fg = color_table_rgb[0][COLOR_WHITE];

    pixman_image_t *glyph;

    int len, x, y, i;



    len = strlen(msg);

    x = (640/FONT_WIDTH  - len) / 2;

    y = (480/FONT_HEIGHT - 1)   / 2;

    for (i = 0; i < len; i++) {

        glyph = qemu_pixman_glyph_from_vgafont(FONT_HEIGHT, vgafont16, msg[i]);

        qemu_pixman_glyph_render(glyph, surface->image, &fg, &bg,

                                 x+i, y, FONT_WIDTH, FONT_HEIGHT);

        qemu_pixman_image_unref(glyph);

    }

    return surface;

}

static DisplaySurface *qemu_create_dummy_surface(void)

{

    static const char msg[] =

        "This VM has no graphic display device.";

    DisplaySurface *surface = qemu_create_displaysurface(640, 480);

    pixman_color_t bg = color_table_rgb[0][COLOR_BLACK];

    pixman_color_t fg = color_table_rgb[0][COLOR_WHITE];

    pixman_image_t *glyph;

    int len, x, y, i;



    len = strlen(msg);

    x = (640/FONT_WIDTH  - len) / 2;

    y = (480/FONT_HEIGHT - 1)   / 2;

    for (i = 0; i < len; i++) {

        glyph = qemu_pixman_glyph_from_vgafont(FONT_HEIGHT, vgafont16, msg[i]);

        qemu_pixman_glyph_render(glyph, surface->image, &fg, &bg,

                                 x+i, y, FONT_WIDTH, FONT_HEIGHT);

        qemu_pixman_image_unref(glyph);

    }

    return surface;

}

static DisplaySurface *FUNC_0(void)

{

    static const char VAR_0[] =

        "This VM has no graphic display device.";

    DisplaySurface *surface = qemu_create_displaysurface(640, 480);

    pixman_color_t bg = color_table_rgb[0][COLOR_BLACK];

    pixman_color_t fg = color_table_rgb[0][COLOR_WHITE];

    pixman_image_t *glyph;

    int VAR_1, VAR_2, VAR_3, VAR_4;



    VAR_1 = strlen(VAR_0);

    VAR_2 = (640/FONT_WIDTH  - VAR_1) / 2;

    VAR_3 = (480/FONT_HEIGHT - 1)   / 2;

    for (VAR_4 = 0; VAR_4 < VAR_1; VAR_4++) {

        glyph = qemu_pixman_glyph_from_vgafont(FONT_HEIGHT, vgafont16, VAR_0[VAR_4]);

        qemu_pixman_glyph_render(glyph, surface->image, &fg, &bg,

                                 VAR_2+VAR_4, VAR_3, FONT_WIDTH, FONT_HEIGHT);

        qemu_pixman_image_unref(glyph);

    }

    return surface;

}

static DisplaySurface *FUNC_0(void)
{ static const char VAR_0[] =
"This VM has no graphic display device."; DisplaySurface *surface = qemu_create_displaysurface(640, 480); pixman_color_t bg = color_table_rgb[0][COLOR_BLACK]; pixman_color_t fg = color_table_rgb[0][COLOR_WHITE]; pixman_image_t *glyph; int VAR_1, VAR_2, VAR_3, VAR_4; VAR_1 = strlen(VAR_0); VAR_2 = (640/FONT_WIDTH  - VAR_1) / 2; VAR_3 = (480/FONT_HEIGHT - 1)   / 2; for (VAR_4 = 0; VAR_4 < VAR_1; VAR_4++) { glyph = qemu_pixman_glyph_from_vgafont(FONT_HEIGHT, vgafont16, VAR_0[VAR_4]); qemu_pixman_glyph_render(glyph, surface->image, &fg, &bg,
VAR_2+VAR_4, VAR_3, FONT_WIDTH, FONT_HEIGHT); qemu_pixman_image_unref(glyph); } return surface; }