static void console_refresh(QemuConsole *s)

{

    DisplaySurface *surface = qemu_console_surface(s);

    TextCell *c;

    int x, y, y1;



    if (s->ds->have_text) {

        s->text_x[0] = 0;

        s->text_y[0] = 0;

        s->text_x[1] = s->width - 1;

        s->text_y[1] = s->height - 1;

        s->cursor_invalidate = 1;

    }



    vga_fill_rect(s, 0, 0, surface_width(surface), surface_height(surface),

                  color_table_rgb[0][COLOR_BLACK]);

    y1 = s->y_displayed;

    for (y = 0; y < s->height; y++) {

        c = s->cells + y1 * s->width;

        for (x = 0; x < s->width; x++) {

            vga_putcharxy(s, x, y, c->ch,

                          &(c->t_attrib));

            c++;

        }

        if (++y1 == s->total_height) {

            y1 = 0;

        }

    }

    console_show_cursor(s, 1);

    dpy_gfx_update(s, 0, 0,

                   surface_width(surface), surface_height(surface));

}

static void console_refresh(QemuConsole *s)

{

    DisplaySurface *surface = qemu_console_surface(s);

    TextCell *c;

    int x, y, y1;



    if (s->ds->have_text) {

        s->text_x[0] = 0;

        s->text_y[0] = 0;

        s->text_x[1] = s->width - 1;

        s->text_y[1] = s->height - 1;

        s->cursor_invalidate = 1;

    }



    vga_fill_rect(s, 0, 0, surface_width(surface), surface_height(surface),

                  color_table_rgb[0][COLOR_BLACK]);

    y1 = s->y_displayed;

    for (y = 0; y < s->height; y++) {

        c = s->cells + y1 * s->width;

        for (x = 0; x < s->width; x++) {

            vga_putcharxy(s, x, y, c->ch,

                          &(c->t_attrib));

            c++;

        }

        if (++y1 == s->total_height) {

            y1 = 0;

        }

    }

    console_show_cursor(s, 1);

    dpy_gfx_update(s, 0, 0,

                   surface_width(surface), surface_height(surface));

}

static void FUNC_0(QemuConsole *VAR_0)

{

    DisplaySurface *surface = qemu_console_surface(VAR_0);

    TextCell *c;

    int VAR_1, VAR_2, VAR_3;



    if (VAR_0->ds->have_text) {

        VAR_0->text_x[0] = 0;

        VAR_0->text_y[0] = 0;

        VAR_0->text_x[1] = VAR_0->width - 1;

        VAR_0->text_y[1] = VAR_0->height - 1;

        VAR_0->cursor_invalidate = 1;

    }



    vga_fill_rect(VAR_0, 0, 0, surface_width(surface), surface_height(surface),

                  color_table_rgb[0][COLOR_BLACK]);

    VAR_3 = VAR_0->y_displayed;

    for (VAR_2 = 0; VAR_2 < VAR_0->height; VAR_2++) {

        c = VAR_0->cells + VAR_3 * VAR_0->width;

        for (VAR_1 = 0; VAR_1 < VAR_0->width; VAR_1++) {

            vga_putcharxy(VAR_0, VAR_1, VAR_2, c->ch,

                          &(c->t_attrib));

            c++;

        }

        if (++VAR_3 == VAR_0->total_height) {

            VAR_3 = 0;

        }

    }

    console_show_cursor(VAR_0, 1);

    dpy_gfx_update(VAR_0, 0, 0,

                   surface_width(surface), surface_height(surface));

}

static void FUNC_0(QemuConsole *VAR_0)
{ DisplaySurface *surface = qemu_console_surface(VAR_0); TextCell *c; int VAR_1, VAR_2, VAR_3; if (VAR_0->ds->have_text) { VAR_0->text_x[0] = 0; VAR_0->text_y[0] = 0; VAR_0->text_x[1] = VAR_0->width - 1; VAR_0->text_y[1] = VAR_0->height - 1; VAR_0->cursor_invalidate = 1; } vga_fill_rect(VAR_0, 0, 0, surface_width(surface), surface_height(surface),
color_table_rgb[0][COLOR_BLACK]); VAR_3 = VAR_0->y_displayed; for (VAR_2 = 0; VAR_2 < VAR_0->height; VAR_2++) { c = VAR_0->cells + VAR_3 * VAR_0->width; for (VAR_1 = 0; VAR_1 < VAR_0->width; VAR_1++) { vga_putcharxy(VAR_0, VAR_1, VAR_2, c->ch,
&(c->t_attrib)); c++; } if (++VAR_3 == VAR_0->total_height) { VAR_3 = 0; } } console_show_cursor(VAR_0, 1); dpy_gfx_update(VAR_0, 0, 0,
surface_width(surface), surface_height(surface)); }