diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-04-22 17:00:27 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-04-22 17:00:27 +0000 |
commit | 93d4939787923f059b038a6cd119cb6de2211d33 (patch) | |
tree | 60dd54a74d80fadf85aeda53713f65dd705fe33d | |
parent | 0a24f4dbca3b3c98b14139b8fd96a3b326c307ae (diff) | |
download | netsurf-93d4939787923f059b038a6cd119cb6de2211d33.tar.gz netsurf-93d4939787923f059b038a6cd119cb6de2211d33.tar.bz2 |
Logically, this ratio should be x/y not y/x
svn path=/trunk/netsurf/; revision=12232
-rw-r--r-- | amiga/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |