VOGONS


First post, by jaclfh

User metadata
Rank Newbie
Rank
Newbie

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)

Reply 1 of 3, by Gamecollector

User metadata
Rank Oldbie
Rank
Oldbie

The same effect was in the "Alien Trilogy", IIRC.

Asus P4P800 SE/Pentium4 3.2E/2 Gb DDR400B,
Radeon HD3850 Agp (Sapphire), Catalyst 14.4 (XpProSp3).
Voodoo2 12 MB SLI, Win2k drivers 1.02.00 (XpProSp3).

Reply 2 of 3, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The aspect correction needs fixing, not the mode table. Guess it will be one of my next things to merge the aspect correction from MB6.

1+1=10

Reply 3 of 3, by VileR

User metadata
Rank l33t
Rank
l33t
h-a-l-9000 wrote:

Guess it will be one of my next things to merge the aspect correction from MB6.

That would be welcome 😁