From 69f83ed262fc95d528d38706d13d4daa36161694 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 11 Oct 2011 17:58:14 +0000 Subject: Be more flexible with the aspect ratios we correct to. svn path=/trunk/netsurf/; revision=13036 --- amiga/font.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'amiga/font.c') diff --git a/amiga/font.c b/amiga/font.c index 1876eedb8..3accd6650 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -662,7 +662,7 @@ void ami_font_setdevicedpi(int id) nscss_screen_dpi = INTTOFIX(option_amiga_ydpi); - if(id) + if(id && (option_monitor_aspect_x != 0) && (option_monitor_aspect_y != 0)) { if(dih = FindDisplayInfo(id)) { @@ -672,12 +672,12 @@ void ami_font_setdevicedpi(int id) int xres = dinfo.Resolution.x; int yres = dinfo.Resolution.y; - if(option_widescreen) + if((option_monitor_aspect_x != 4) || (option_monitor_aspect_y != 3)) { /* AmigaOS sees 4:3 modes as square in the DisplayInfo database, - * so we correct 16:10 modes to square for widescreen displays. */ - xres = (xres * 16) / 4; - yres = (yres * 10) / 3; + * so we correct other modes to "4:3 equiv" here. */ + xres = (xres * option_monitor_aspect_x) / 4; + yres = (yres * option_monitor_aspect_y) / 3; } xdpi = (yres * ydpi) / xres; -- cgit v1.2.3