From 93d4939787923f059b038a6cd119cb6de2211d33 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 22 Apr 2011 17:00:27 +0000 Subject: Logically, this ratio should be x/y not y/x svn path=/trunk/netsurf/; revision=12232 --- amiga/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amiga/font.c b/amiga/font.c index 86429ee4b..c8404e2ca 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -634,7 +634,7 @@ void ami_font_setdevicedpi(int id) DTAG_DISP, 0)) { dinfo_res = dinfo.Resolution; - xdpi = (dinfo_res.y / dinfo_res.x) * ydpi; + xdpi = (dinfo_res.x / dinfo_res.y) * ydpi; LOG(("XDPI = %ld, YDPI = %ld (DisplayInfo resolution %ld x %ld)", xdpi, ydpi, dinfo_res.x , dinfo_res.y)); -- cgit v1.2.3