]> git.proxmox.com Git - mirror_qemu.git/commit - ui/console.c
ui/console: use QEMU_PIXMAN_COLOR helpers
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 30 Aug 2023 09:38:10 +0000 (13:38 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 4 Sep 2023 10:00:56 +0000 (14:00 +0400)
commit1ece6777fe1770f8a26f6887be96b21edfd0e442
treefbca6bf3916acadab7367a5720d16038f71c7e6e
parent8c6381d84668ff9b6324bf00b91107cbcaf7505f
ui/console: use QEMU_PIXMAN_COLOR helpers

QEMU_RGB macro is actually defining a pixman color. Make this explicit
in the macro name. Move it to qemu-pixman.h so it can be used elsewhere,
as done in the following patch. Finally, define
QEMU_PIXMAN_COLOR_{BLACK,GRAY}, to avoid need to look up the VGA color
table from the QemuConsole placeholder surface rendering.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230830093843.3531473-37-marcandre.lureau@redhat.com>
include/ui/qemu-pixman.h
ui/console.c