* Disable stretching of mode 13h while fullscreened?
@ 2004-09-13 16:59 Dave Ahlswede
2004-09-14 21:50 ` Bart Oldeman
0 siblings, 1 reply; 5+ messages in thread
From: Dave Ahlswede @ 2004-09-13 16:59 UTC (permalink / raw)
To: linux-msdos
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Disable stretching of mode 13h while fullscreened?
2004-09-13 16:59 Disable stretching of mode 13h while fullscreened? Dave Ahlswede
@ 2004-09-14 21:50 ` Bart Oldeman
2004-09-14 23:46 ` Dave Ahlswede
0 siblings, 1 reply; 5+ messages in thread
From: Bart Oldeman @ 2004-09-14 21:50 UTC (permalink / raw)
To: mightyquinn; +Cc: linux-msdos
On Mon, 13 Sep 2004, Dave Ahlswede wrote:
> 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.
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.
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Disable stretching of mode 13h while fullscreened?
2004-09-14 21:50 ` Bart Oldeman
@ 2004-09-14 23:46 ` Dave Ahlswede
2004-09-15 8:04 ` Bart Oldeman
0 siblings, 1 reply; 5+ messages in thread
From: Dave Ahlswede @ 2004-09-14 23:46 UTC (permalink / raw)
To: Bart Oldeman; +Cc: linux-msdos
On Wed, 2004-09-15 at 09:50 +1200, Bart Oldeman wrote:
> 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 )
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Disable stretching of mode 13h while fullscreened?
2004-09-14 23:46 ` Dave Ahlswede
@ 2004-09-15 8:04 ` Bart Oldeman
2004-09-15 8:47 ` Dave Ahlswede
0 siblings, 1 reply; 5+ messages in thread
From: Bart Oldeman @ 2004-09-15 8:04 UTC (permalink / raw)
To: mightyquinn; +Cc: linux-msdos
On Tue, 14 Sep 2004, Dave Ahlswede wrote:
> 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
--- src/env/video/X.c.~1.43.~ 2004-08-15 00:41:39.000000000 +1200
+++ src/env/video/X.c 2004-09-15 20:00:23.000000000 +1200
@@ -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;
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-09-15 8:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-13 16:59 Disable stretching of mode 13h while fullscreened? Dave Ahlswede
2004-09-14 21:50 ` Bart Oldeman
2004-09-14 23:46 ` Dave Ahlswede
2004-09-15 8:04 ` Bart Oldeman
2004-09-15 8:47 ` Dave Ahlswede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox