First post, by Kordanor
I will come to my issue at the bottom, but first up want to summarize, so that the thread can also help other people with different sets of problems:
DOS has two display modes which show as 720x400, which is the Textmode, and 320x200, which is interpreted as 320x200
You can make the font bigger and smaller by adding
this line to config.sys
DEVICE=C=\DOS\ANSI.SYS
and then you can use
MODE C,L
where C is columns and can be 40 or 80
and L is Lines and can be 25, 43 or 50
so if you type "MODE 40,25" then everything will show up huge.
However this neither changes the resolution, nor the frame rate.
There are specific drivers, if your graphics card has any, which allow to set custom resolutions for DOS.
LGR is showing this on his Diamond Viper here: https://youtu.be/AEwXZPzm3es?t=205
Of course you would either need to be lucky with your card, or specifically look for a card which can do that. I am not aware of a "generic" driver for that.
This tool was created by
TheGreatCodeholio wrote on 2017-12-17, 21:49:
This tool changes your resolution to 640x480 and also puts it to 60Hz.
You can get it by downloading it here:
https://github.com/joncampbell123/doslib/rele … 3204f18718290ef
Extract the file, then extract the file again.
Go to doslib directory->hw->vga->dos86s
and then copy that directory to your dosmachine. Start vga240 to get further instructions.
Initialize by typing vga240 /install
Once you reboot the computer the mode is unloaded again
Note
I have no idea what the other versions do and also what the other releases include. The latest release from 2020 got my antivirus active, which is why I don't post it here. The version I posted above worked without virus alert.
The last option can help for example to capture and display the screen on hdmi which only does 60Hz.
The issue I got is a different one. I'd like to "split" between 320x200 and 720x400 Text mode. And I am not quite sure whether there is any option in that tool or other version which can help, maybe @TheGreatCodeholio can shed some light on that.
The issue is that the recording program cannot differentiate between these two. Both resolutions arrive as 720x400 with 70Hz.
In order to properly capture 320x200 70Hz I need to downscale it to 320x200 and then capture it. And while that works, the tool will also downscale the 720x400 text mode. Which...well, becomes unreadable.
So I am wondering if there is an option to just change it slightly, adjust the resolution slightly (like add an extra line of pixels) or adjust the framerate to just 69Hz or something similar. Both would do, so that the recording tool can make the distinction. Ofc that means that the same change must not also apply on 320x200 games. Currently both are affected the same way.
I am also wondering if there aren't some more generic drivers which can maybe help.
Edit: In the Directly from vga240 I also found tmodeset. This allows to change pixelclock between 8 and 9. And with set setting the refresh rate to 78.731 and the resolution to 560x430. That's not a great option, as a TFT cant display it anymore. But it goes into the right direction at least. Unfortunately its also lost, once you re-enter text mode.