aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-08-30 13:37:41 +0400
committerPatchew Applier <no-reply@patchew.org>2023-09-01 17:21:04 +0000
commitbc9b8bc93cafee6f3c9f73ef5e8a7379004e8699 (patch)
treecdbd737096baab408c2c9060775e9a8567fa0445 /ui
parent074b24094f34c3241956064cf7910bbe11642871 (diff)
downloadqemu-bc9b8bc93cafee6f3c9f73ef5e8a7379004e8699.zip
qemu-bc9b8bc93cafee6f3c9f73ef5e8a7379004e8699.tar.gz
qemu-bc9b8bc93cafee6f3c9f73ef5e8a7379004e8699.tar.bz2
ui/console: call dpy_gfx_update() regardless of have_gfx
The function will handle the case when no listeners are gfx, without extra meaningful cost. This allows to get rid of DisplayState dependency in VC implementation. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230830093843.3531473-8-marcandre.lureau@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c
index 14717a6..2bc4c15 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1087,7 +1087,7 @@ static int vc_chr_write(Chardev *chr, const uint8_t *buf, int len)
console_putchar(s, buf[i]);
}
console_show_cursor(s, 1);
- if (s->ds->have_gfx && s->update_x0 < s->update_x1) {
+ if (s->update_x0 < s->update_x1) {
dpy_gfx_update(s, s->update_x0, s->update_y0,
s->update_x1 - s->update_x0,
s->update_y1 - s->update_y0);