VOGONS

Common searches


First post, by bichuch

User metadata
Rank Newbie
Rank
Newbie

I use some old text-mode DOS programs. They are working fine in 50-line VGA-text. In the past (console window under WinXP) I surrounded them with "mode con lines=50" and "mode con lines=25" pairs in their .BAT-files and console window changed it's heighth as expected. But now, under W7-x64, there are no "mode" command in the DOSBox. And font becomes very ugly after program's switching into 50-lines mode, because of constant physical size of the DOSBox window.
Is there any method for height of text-mode window changing?

Last edited by bichuch on 2012-09-17, 07:59. Edited 2 times in total.

Reply 1 of 12, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

I'm not sure I understand correctly, but you can try using the FreeDOS version of MODE.
http://www.freedos.org/software/?prog=mode

But that won't change the vertical size of the DOSBox window. I think you might be able to scale the window size manually by altering the DOSBox configuration file.

Alternatively, perhaps you will find TameDOS to suit your needs better.
http://www.tamedos.com/

Reply 2 of 12, by bichuch

User metadata
Rank Newbie
Rank
Newbie

Thank you, Jorpho.
Yes, in fact, I need to regulate vertical size (in pixels) of the DOSBox window independently from it's horizontal size, i.e. to set desired aspect ratio. And I do not understand how to reach this goal with editing of the "dosbox-0.74.conf" file. May be somebody could help?
P.S. TameDOS is not free, so it could not be for me in any case.

Reply 3 of 12, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

You need to change the WindowResolution and Output lines in dosbox.conf, which you can access through the Start menu via DOSBox->Options->DOSBox 0.74 Options.

There are many, many threads on the subject already if you need more details.

Reply 4 of 12, by bichuch

User metadata
Rank Newbie
Rank
Newbie

Yes, I have seen contents of the "dosbox-0.74.conf" and made some editings of it (in the "autoexec" section). There is "windowresolution" keyword in the file, but not "Output lines"!
Maybe I must to add such a keyword? What is the exact spelling of it and in the which section?

Reply 5 of 12, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

It was about the lines windowresolution and output. Look again, in the first block output is written and normally set to surface.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 6 of 12, by bichuch

User metadata
Rank Newbie
Rank
Newbie

Yes, there is "output=surface" string in the .conf-file and I have seen it before already.
Commented lines there say nothing about quantity of text lines in text-mode or something like that.
But my question was and is about method for setting size of text-mode window, horizontal and vertical independently, in pixels. And by now, I do not understand how to achieve my goal.

Reply 7 of 12, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
bichuch wrote:

Commented lines there say nothing about quantity of text lines in text-mode or something like that.

But that is not what you want to do. You said:

bichuch wrote:

I need to regulate vertical size (in pixels) of the DOSBox window independently from it's horizontal size, i.e. to set desired aspect ratio.

You will also note that the commented lines state:

# windowresolution: Scale the window to this size IF the output device supports hardware scaling.
# (output=surface does not!)
# output: What video system to use for output.
# Possible values: surface, overlay, opengl, openglnb, ddraw.

So, change "output=" to something else, and then set "windowresolution=" to 640x960 or whatever you like.

Reply 8 of 12, by bichuch

User metadata
Rank Newbie
Rank
Newbie

Well, I have changed "output=surface" sequentially with "...=overlay", "...=opengl", "...=openglnb", "...=ddraw". Results are:
with "...=opengl[nb]" the window shows nothing (complete black), other variants work normal. But value of "windowresolution=..." have no meaning, with "original", "640x720", "640x960" or commenting out this directive, screen size in pixels of the window is the same...
🙁

Reply 9 of 12, by bichuch

User metadata
Rank Newbie
Rank
Newbie

Maybe I am doing something in the wrong way.
Jorpho, could you please post a screenshot of the desktop with non-standard sized DOSbox window and attach the .conf file, that made this result?

Reply 10 of 12, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

I did a search and found Making dosbox go from 4:3 to 16:9 , which suggests that the DOSBox window has to be 4:3 or 8:5.

So it turns out the answer is No, there is probably no way to change the screen height, at least not without patching the source code to allow a different aspect ratio. Sorry.

Reply 11 of 12, by bichuch

User metadata
Rank Newbie
Rank
Newbie

Yes, I see. 😖
We can not change the aspect ratio of a hardware display - DOSbox is a true emulator, that works in the same right way.
I meet one another feature (or bug?): it does not allow to move mouse pointer below 25 line in 50-lines text mode.
And again my question is about fatality of such behaviour. May be some secret method for workaround of that exists?