Making DOSBOX full screen isn't too hard, but making it full screen in a square screen it is. After multiple tries, i found a way to do so and also in my Hackberry Pi, which uses a 720x720 LCD screen. The following guide is for use with a Hackberry Pi, under plain terminal/TTY.
Before doing so, understand these. This mod/trick, is not very useful, for graphic applications in DOS. It is more useful, for text mode applications like text editors, IDEs for programming etc. Even so, some text mode applications, may use only the half screen (25 lines). If you omit Step 3 you still gonna have a full screen DOSBOX, but there will be large black areas above and below the DOSBOX app. But still is usable even in this way.
Step 1
To run DOSBOX in a non Xwindows/GUI environment, we will use the trick with startx
. So create a script to launch it, via startx
. Don't forget to make it executable.
startx /usr/bin/dosbox -fullscreen --
Step 2
Now download this file 8x12_50.zip and extract it inside the folder, that you will use for DOS, for example /home/pi/dos
.
The file was found at Vogons forum
Step 3
Open the dosbox config file, like nano ~/.dosbox/dosbox-0.74-3.conf
At the end of the file insert these lines... and continue to step 4, do not save the file yet.
mount c /home/pi/dos
c:\dos\8x12_50
Step 4
As you are editing the dosbox-0.74-3.conf
file, go to the top and find these lines, at the [sdl]
stanza. They may differ a bit.
fullscreen=false
fulldouble=false
fullresolution=original
windowresolution=1024x768
output=surface
Change them to:
fullscreen=false
fulldouble=false
fullresolution=720x720
windowresolution=720x720
output=opengl
Now save the file and you are ready. Execute the launch script from above... you should see DOSBOX in fullscreen mode and be able to display 50 lines.