[PATCH v2] Arithmetic error in EDID generation fixed

2020-02-26 Thread Anton V. Boyarshinov
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 --- Changes from v1: get rid of casts hw/display/edid-generate.c | 4 ++-- 1 file changed

[PATCH] Arithmetic error fixed in EDID generation

2020-02-25 Thread Anton V. Boyarshinov
To compute 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 --- hw/display/edid-generate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff