edid: use physical dimensions if available
commitfd36eade0187a4efe0507b41fae22277300d1c7a
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 27 Sep 2020 14:57:47 +0000 (27 18:57 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 29 Sep 2020 08:08:25 +0000 (29 10:08 +0200)
tree02357862c1df0ef7e58f11ace0789600ae680103
parent6c8f847ac1356387692f224b48c7a83ac5918b5d
edid: use physical dimensions if available

Replace dpi with width_mm/height_mm in qemu_edid_info.

Use it when set (non-zero) to compute the DPI and generate the EDID.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20200927145751.365446-3-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/edid-generate.c
include/hw/display/edid.h
qemu-edid.c