summary refs log tree commit diff stats
path: root/hw/riscv/virt.c
diff options
context:
space:
mode:
authorAnton V. Boyarshinov <boyarsh@altlinux.org>2020-02-26 15:20:54 +0300
committerGerd Hoffmann <kraxel@redhat.com>2020-03-02 08:20:30 +0100
commitcd8fef8d4b2dfeadc68ffb4d741ab23e9e13dad1 (patch)
tree09956f00c4a6edc0f5252ce98765a0bb52620077 /hw/riscv/virt.c
parente0175b71638cf4398903c0d25f93fe62e0606389 (diff)
downloadfocaccia-qemu-cd8fef8d4b2dfeadc68ffb4d741ab23e9e13dad1.tar.gz
focaccia-qemu-cd8fef8d4b2dfeadc68ffb4d741ab23e9e13dad1.zip
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>
Diffstat (limited to 'hw/riscv/virt.c')
0 files changed, 0 insertions, 0 deletions