On Tue, 20 Jan 2004, Hanno [ISO-8859-15] B�ck wrote: > On Mon, 19 Jan 2004 22:30:36 +0000 (GMT) > Bart Oldeman <[EMAIL PROTECTED]> wrote: > > > Or perhaps you switched the color depth of your X server? > > Damn, that was the solution. Sorry for hurting you with this problem. > (When will xfree support color depth-switching runtime?)
at one point this was supposed to be part of the RandR extension but I'm not sure what came of it. DGA is another possibility -- but it requires root if no kernel framebuffer device is present. And if fbdev is present then changing depth/resolution may not be possible either (e.g. vesafb) > But I still have the problem I reported a while ago (and got no answer) > that if an application in xdosemu runs in vesa, i cannot switch to > fullscreen (well, I can, but then the screen is black - if i switch > back, I get my picture back). Right, when I implemented fullscreen I didn't check the >=15bpp vesa modes, just 256 color ones. The problem is that these high bpp modes can't be scaled (with other video modes in windowed mode you can make the window as large as you like) but I did try to do that anyway. " In addition, the current hi- and true color support does not allow resizing of the graphics window and gamma correction is ignored." Scaling is nontrivial but it should be straightforward to disable trying to scale hi/true color modes for fullscreen, and just choose a fitting resolution with black margins if necessary. I'll give that a go. > And for the problem above: Are there plans to implement the support of > lower color depth modes if you have a higher color depth? > I mean, it should be trivial to display a 16bit-image on a 24bit screen > (just some shifting of the values). I'm not familiar with the > dosemu-source, if you give me a hint where to start looking in the > source, I'll try if I can get a patch done. I think there are no concrete plans but it would surely be a nice thing to have. src/env/video/remap.c and remap_asm.S are the places to start looking. Bart - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
