First post, by jaclfh
Using Dosbox 0.74 and machine=svga_s3, the mode 0x10F (320x200, 32-bit color) outputs with bad aspect ratio. Looks like the window is twice as wide as it should be. The following patch fixes it:
--- dosbox-0.74.orig//src/ints/int10_modes.cpp 2010-05-10 20:43:54.000000000 +0300
+++ dosbox-0.74//src/ints/int10_modes.cpp 2011-06-05 22:23:25.680308876 +0300
@@ -74,7 +74,7 @@
{ 0x10D ,M_LIN15 ,320 ,200 ,40 ,25 ,8 ,8 ,1 ,0xA0000 ,0x10000,100 ,449 ,80 ,400 , _VGA_PIXEL_DOUBLE | _EGA_LINE_DOUBLE },
{ 0x10E ,M_LIN16 ,320 ,200 ,40 ,25 ,8 ,8 ,1 ,0xA0000 ,0x10000,100 ,449 ,80 ,400 , _VGA_PIXEL_DOUBLE | _EGA_LINE_DOUBLE },
-{ 0x10F ,M_LIN32 ,320 ,200 ,40 ,25 ,8 ,8 ,1 ,0xA0000 ,0x10000,50 ,449 ,40 ,400 , _VGA_PIXEL_DOUBLE | _EGA_LINE_DOUBLE },
+{ 0x10F ,M_LIN32 ,320 ,200 ,40 ,25 ,8 ,8 ,1 ,0xA0000 ,0x10000,100 ,449 ,40 ,400 , _VGA_PIXEL_DOUBLE | _EGA_LINE_DOUBLE },
{ 0x110 ,M_LIN15 ,640 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,200 ,525 ,160,480 ,0 },
{ 0x111 ,M_LIN16 ,640 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,200 ,525 ,160,480 ,0 },
{ 0x112 ,M_LIN32 ,640 ,480 ,80 ,30 ,8 ,16 ,1 ,0xA0000 ,0x10000,100 ,525 ,80 ,480 ,0 },
(N.B. I don't know if the modeline was wrong or if there's something wrong with the vga code. The patch merely fixes the problem for me.)
This occurs with e.g. the demo Gateways ftp://ftp.scene.org/pub/parties/1998/assembly … mo/gateways.zip
(for dosbox.conf, you need output=ddraw, aspect=true, machine=svga_s3, memsize=31, gus=false)