Arithmetic error in EDID generation fixed
commitcd8fef8d4b2dfeadc68ffb4d741ab23e9e13dad1
authorAnton V. Boyarshinov <boyarsh@altlinux.org>
Wed, 26 Feb 2020 12:20:54 +0000 (26 15:20 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 2 Mar 2020 07:20:30 +0000 (2 08:20 +0100)
tree09956f00c4a6edc0f5252ce98765a0bb52620077
parente0175b71638cf4398903c0d25f93fe62e0606389
Arithmetic error in EDID generation fixed

To calculate screen size in centimeters we should calculate:
pixels/dpi*2.54
but not
pixels*dpi/2540

Using wrong formula we actually get 65 DPI and very small fonts.

Signed-off-by: Anton V. Boyarshinov <boyarsh@altlinux.org>
Message-id: 20200226122054.366b9cda@table.localdomain
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/edid-generate.c