VOGONS


First post, by simian

User metadata
Rank Newbie
Rank
Newbie

I think it wood be good if there was a fullscreen stretch to fit option, so you could put it in a high resolution but still have the picture take up the whole screen.
Why would you want to do that? So you don't get those nasty horizontal lines that you get at low resolutions on big monitors.

Reply 4 of 4, by Markus

User metadata
Rank Newbie
Rank
Newbie

If you can compile dosbox yourself, do this:
change in sdlmain.cpp following lines:

if (sdl.desktop.fullscreen) {
if (sdl.desktop.fixed) {
double ratio_w=(double)sdl.desktop.width/(width*scalex);
double ratio_h=(double)sdl.desktop.height/(height*scaley);
if ( ratio_w < ratio_h) {
sdl.clip.w=(Bit16u)sdl.desktop.width;
sdl.clip.h=(Bit16u)(height*scaley*ratio_w);
} else {
sdl.clip.w=(Bit16u)(width*scalex*ratio_h);
sdl.clip.h=(Bit16u)sdl.desktop.height;
}

to

if (sdl.desktop.fullscreen) {
if (sdl.desktop.fixed) {
double ratio_w=(double)sdl.desktop.width/(width*scalex);
double ratio_h=(double)sdl.desktop.height/(height*scaley);
sdl.clip.w=(Bit16u)sdl.desktop.width;
sdl.clip.h=(Bit16u)sdl.desktop.height;

There are two occurences of this.
Now change your dosbox.conf:

fullfixed=true
fullwidth=whatever you want
fullheight=whatever you want
output=anything but surface

Now there's no more cinemascope;-)