Commit 1e4ded80b1 for qemu.org

commit 1e4ded80b1a14c0336df8dea4df32ed69e2b5327
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date:   Thu Feb 19 12:08:13 2026 +0100

    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>

diff --git a/ui/console-vc.c b/ui/console-vc.c
index bc8462f979..fca04fe57d 100644
--- a/ui/console-vc.c
+++ b/ui/console-vc.c
@@ -229,9 +229,8 @@ static void vt100_image_update(QemuVT100 *vt, int x, int y, int width, int heigh
     vt->image_update(vt, x, y, width, height);
 }

-static void console_refresh(QemuTextConsole *s)
+static void vt100_refresh(QemuVT100 *vt)
 {
-    QemuVT100 *vt = &s->vt;
     TextCell *c;
     int x, y, y1;
     int w = pixman_image_get_width(vt->image);
@@ -257,8 +256,8 @@ static void console_refresh(QemuTextConsole *s)
             y1 = 0;
         }
     }
-    vt100_show_cursor(&s->vt, 1);
-    vt100_image_update(&s->vt, 0, 0, w, h);
+    vt100_show_cursor(vt, 1);
+    vt100_image_update(vt, 0, 0, w, h);
 }

 static void console_scroll(QemuTextConsole *s, int ydelta)
@@ -288,7 +287,7 @@ static void console_scroll(QemuTextConsole *s, int ydelta)
                 vt->y_displayed = vt->total_height - 1;
         }
     }
-    console_refresh(s);
+    vt100_refresh(&s->vt);
 }

 static void kbd_send_chars(QemuTextConsole *s)
@@ -1066,7 +1065,7 @@ static void text_console_invalidate(void *opaque)
     if (!QEMU_IS_FIXED_TEXT_CONSOLE(s)) {
         text_console_resize(QEMU_TEXT_CONSOLE(s));
     }
-    console_refresh(s);
+    vt100_refresh(&s->vt);
 }

 static void