]> git.proxmox.com Git - mirror_qemu.git/commit - ui/console.c
ui/console: optionally update after gfx switch
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 20 Feb 2022 19:31:58 +0000 (23:31 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 14 Mar 2022 11:16:21 +0000 (15:16 +0400)
commitc84ab0a500a84851debd1d4485e72325da98c778
tree135a5f16c4ec37341ec7bd01eee6963fca987ec3
parent26b032b9b746782a1ee5156a70cc074b6de5af0f
ui/console: optionally update after gfx switch

When switching to the dummy surface, we should also call gfx_update.
But when using GL, we shouldn't call it.

By making it an argument to displaychangelistener_gfx_switch(), it will
be explicit, and cannot be forgotten that easily.

Fixes: commit ebced091 ("console: save current scanout details")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
ui/console.c