ui/console-vc: console_refresh() -> vt100_refresh()
This decouples glyph rendering from the console object, continuing the QemuVT100 abstraction introduced in the previous commits. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau committed
Feb 19, 2026 at 12:08 UTC
1e4ded80b1a14c0336df8dea4df32ed69e2b5327
1 file changed
+5
-6
ui/console-vc.c
+5
-6
@@ -229,9 +229,8 @@ static void vt100_image_update(QemuVT100 *vt, int x, int y, int width, int heigh
229
vt->image_update(vt, x, y, width, height);
230
}
231
232
-static void console_refresh(QemuTextConsole *s)
232
+static void vt100_refresh(QemuVT100 *vt)
233
{
234
- QemuVT100 *vt = &s->vt;
234
TextCell *c;
235
int x, y, y1;
236
int w = pixman_image_get_width(vt->image);
@@ -257,8 +256,8 @@ static void console_refresh(QemuTextConsole *s)
256
y1 = 0;
257
}
258
}
260
- vt100_show_cursor(&s->vt, 1);
261
- vt100_image_update(&s->vt, 0, 0, w, h);
259
+ vt100_show_cursor(vt, 1);
260
+ vt100_image_update(vt, 0, 0, w, h);
261
}
262
263
static void console_scroll(QemuTextConsole *s, int ydelta)
@@ -288,7 +287,7 @@ static void console_scroll(QemuTextConsole *s, int ydelta)
287
vt->y_displayed = vt->total_height - 1;
288
}
289
}
291
- console_refresh(s);
290
+ vt100_refresh(&s->vt);
291
}
292
293
static void kbd_send_chars(QemuTextConsole *s)
@@ -1066,7 +1065,7 @@ static void text_console_invalidate(void *opaque)
1065
if (!QEMU_IS_FIXED_TEXT_CONSOLE(s)) {
1066
text_console_resize(QEMU_TEXT_CONSOLE(s));
1067
}
1069
- console_refresh(s);
1068
+ vt100_refresh(&s->vt);
1069
}
1070
1071
static void