VOGONS


First post, by Marrr

User metadata
Rank Newbie
Rank
Newbie

OS: Linux Fedora 6, with pretty standard set of packages, including kernel-2.6.18-1.2798.fc6 and SDL-1.2.10-6.2
DOSBox version 0.74, but saw this little problem in earlier versions as well

The problem is that in full-screen mode Hercules graphics mode (720x348) is rendered using 400-line mode (probably 720x400), leaving blank stripes at top and bottom.
Hercules text mode is rendered using 350-line mode (probably 720x350), ie. it looks perfect.

Any fix for this bug? Or perhaps this is supposed to be a feature, I don't know, for some non-standard Hercules graphics mode?

Reply 1 of 2, by Marrr

User metadata
Rank Newbie
Rank
Newbie

OK, had some closer look, and things seem to look like this:
- DOSBox doesn't emulate 9x14 character box, instead it displays 8x14, ie. Hercules text mode is actually rendered using 640x350
- Hercules graphics mode is rendered using 720x348, and the closest mode supported by SDL and/or X11 on my system seems to be 720x400

So I guess all can be done is to try adding 720x350 mode into SDL/X11 configuration...

Reply 2 of 2, by Marrr

User metadata
Rank Newbie
Rank
Newbie

So, problem solved. In case somebody else is interested, here's the solution:
- compute appropriate 720x350 modeline using eg. this calculator: http://www.arachnoid.com/modelines/
- paste the modeline into /etc/X11/xorg.conf , Section "Monitor"
- (re)start X11, and that's all

Works fine with my CRT monitor, can't test it with a LCD right now.

BTW: this solution may be also handy if some day 9-pixel-wide characters emulation is added into MDA/Hercules modes as well.