Disable stretching of mode 13h while fullscreened?
Is there a way to prevent dosemu from vertically stretching the video when it's put into fullscreen mode? It seems not to respect the _X_aspect_43 option.
I do have a 320x200 modeline for Xfree86 setup specifically for DOS games (dosbox seems to respect it), and a lot of games look terrible when stretched in fullscreen.
Quoted 3 lines · Dave Ahlswede
Is there a way to prevent dosemu from vertically stretching the video when it's put into fullscreen mode? It seems not to respect the
_X_aspect_43option.
no, wouldn't be a bad idea though, to have a way to force vertical stretching to be equal to or an integer multiple of horizontal stretching. That's not the same as 4:3 however.
Right now, X_aspect_43 transforms a 320x200 mode into 640x480 in a *window*. Probably not what you want for fullscreen 320x200.
Quoted 3 lines
I do have a 320x200 modeline for Xfree86 setup specifically for DOS games (dosbox seems to respect it), and a lot of games look terrible when stretched in fullscreen.
if you have a 320x200 modeline then dosemu should respect it as well (it does for me -- even without a modeline; adding "320x200" to the Modes line in XF86Config was enough). Please make a log
xdosemu -D+X -o log
and check what it does -- look for messages like this:
X: vidmode asking for (%d,%d); setting (%d,%d)
Bart
Quoted 6 lines · Bart Oldeman
if you have a 320x200 modeline then dosemu should respect it as well (it does for me -- even without a modeline; adding "320x200" to the Modes line in XF86Config was enough). Please make a log
xdosemu -D+X -o log
and check what it does -- look for messages like this:
X: vidmode asking for (%d,%d); setting (%d,%d)
This is most peculiar. It's apparently requesting 320,200, and getting a 320x232 window. (I happen to have a number of other exotic modelines, primarily for XMame, and 320x232 is among them).
quoth the logfile:
X: vidmode asking for (320,200); setting (320,232)
According to the command-line xrandr client, both 320x200 and 320x232 are available, and switching to them using that works fine. So I'm a little confused as to why dosemu has chosen this particular mode.
(If they are of any interest at all, I've posted the output of both dosemu's debug output and xrandr's mode listings at
http://mayaka.sayuri.ca:8000/~quinn/dosemu/availablemodes.txt and
http://mayaka.sayuri.ca:8000/~quinn/dosemu/log )
Quoted 6 lines · Dave Ahlswede
This is most peculiar. It's apparently requesting 320,200, and getting a 320x232 window. (I happen to have a number of other exotic modelines, primarily for XMame, and 320x232 is among them).
quoth the logfile:
X: vidmode asking for (320,200); setting (320,232)
ok. I can see where it goes wrong now. Can you try the patch below?
Bart
env/video/X.c renamed from env/video/X.c.~1.43.~ +2 -2
@@ -2534,8 +2534,8 @@for (i=0 ; i<modecount; i++) {if ((vidmode_modes[i]->hdisplay >= w) && (vidmode_modes[i]->vdisplay >= h) && - (vidmode_modes[i]->hdisplay < nw) && - (vidmode_modes[i]->vdisplay < nh)) { + (vidmode_modes[i]->hdisplay <= nw) && + (vidmode_modes[i]->vdisplay <= nh)) { nw = vidmode_modes[i]->hdisplay; nh = vidmode_modes[i]->vdisplay; j = i;
Quoted 3 lines · Bart Oldeman
ok. I can see where it goes wrong now. Can you try the patch below?
Bart
Patch works perfectly-- Dosemu now properly selects the 320x200 video mode. Thanks much!