First post, by ripsaw8080
- Rank
- DOSBox Author
In DOSBox 0.72, the 640x200x2 video mode 6, aka M_CGA2, gets an aspect ratio of 2.4 when using machine=vga. Being doubleheight, it displays 640x960 with aspect correction enabled... a tall screen indeed. It has the normal aspect ratio of 1.2 when using machine=cga. I would normally just use the CGA machine type as a workaround, but I have a program which tries to set the palette of this mode (INT 10/0B), and that doesn't work on CGA hardware.
Explicitly setting the aspect ratio to 1.2 on this mode in vga_draw.cpp seems an easy and safe patch given that a number of other modes do just that:
case M_CGA2:
aspect_ratio=1.2;
doubleheight=true;
vga.draw.blocks=2*width;
width<<=3;
VGA_DrawLine=VGA_Draw_1BPP_Line;
break;