aboutsummaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'console.c')
-rw-r--r--console.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/console.c b/console.c
index 171d2a9379..b99a3bf189 100644
--- a/console.c
+++ b/console.c
@@ -570,8 +570,11 @@ void console_select(unsigned int index)
active_console = s;
if (s->text_console) {
if (s->g_width != s->ds->width ||
- s->g_height != s->ds->height)
+ s->g_height != s->ds->height) {
+ s->g_width = s->ds->width;
+ s->g_height = s->ds->height;
text_console_resize(s);
+ }
console_refresh(s);
}
}