edid: fix physical display size computation
commit6c8f847ac1356387692f224b48c7a83ac5918b5d
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 27 Sep 2020 14:57:46 +0000 (27 18:57 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 29 Sep 2020 08:08:25 +0000 (29 10:08 +0200)
tree39526abefb826b407f6886b57863a017d8681b3a
parent3745d59ee489bccdab8f678a0f7972e7dbe189f9
edid: fix physical display size computation

Divide the resolution by the DPI, and multiply to mm.

Note the computation done for edid[21/22] is correct (in cm).

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