aboutsummaryrefslogtreecommitdiffstats
path: root/console.c
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-09-10 13:02:07 +0200
committerDavid 'Digit' Turner <digit@android.com>2010-09-13 00:30:35 -0700
commit9d1188280fa5294f9438424e5e8eae91f645bfd8 (patch)
treef50f39aa43923a3c407ec55d72e5031a5aa45e21 /console.c
parent622311e8dfe485ba588b570c69d66e71d9624104 (diff)
downloadexternal_qemu-9d1188280fa5294f9438424e5e8eae91f645bfd8.zip
external_qemu-9d1188280fa5294f9438424e5e8eae91f645bfd8.tar.gz
external_qemu-9d1188280fa5294f9438424e5e8eae91f645bfd8.tar.bz2
upstream: qemu-char updates.
Diffstat (limited to 'console.c')
-rw-r--r--console.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/console.c b/console.c
index 7563d18..50dda6c 100644
--- a/console.c
+++ b/console.c
@@ -173,7 +173,7 @@ void vga_hw_update(void)
void vga_hw_invalidate(void)
{
- if (active_console->hw_invalidate)
+ if (active_console && active_console->hw_invalidate)
active_console->hw_invalidate(active_console->hw);
}
@@ -835,7 +835,6 @@ static void console_clear_xy(TextConsole *s, int x, int y)
TextCell *c = &s->cells[y1 * s->width + x];
c->ch = ' ';
c->t_attrib = s->t_attrib_default;
- c++;
update_xy(s, x, y);
}
@@ -1393,7 +1392,7 @@ static void text_console_do_init(CharDriverState *chr, DisplayState *ds, const c
s->t_attrib = s->t_attrib_default;
text_console_resize(s);
- qemu_chr_reset(chr);
+ qemu_chr_generic_open(chr);
if (chr->init)
chr->init(chr);
}