summaryrefslogtreecommitdiff
path: root/amiga/font.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-10-11 17:58:14 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-10-11 17:58:14 +0000
commit69f83ed262fc95d528d38706d13d4daa36161694 (patch)
tree789245df0b6b56a36bca92873dc81e0797e96386 /amiga/font.c
parent606d7cc64e67fe989476dbfb3e4352f58eabe626 (diff)
downloadnetsurf-69f83ed262fc95d528d38706d13d4daa36161694.tar.gz
netsurf-69f83ed262fc95d528d38706d13d4daa36161694.tar.bz2
Be more flexible with the aspect ratios we correct to.
svn path=/trunk/netsurf/; revision=13036
Diffstat (limited to 'amiga/font.c')
-rw-r--r--amiga/font.c10
1 files changed, 5 insertions, 5 deletions
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;