[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: the 16 bpp display mode patch third try.



On Wed, Oct 18, 2000 at 07:42:39PM +0200, Sebastian Andersson wrote:
> No longer any need to specify the pixelsize in advance, but one still
> has to specify the number of bytes a pixel uses...

I've finally read some of the X11 documentation...  Now it works on 8,
16 & 32 bpp displays (but one still has to set the number of bytes/pixel
in advance). Only tried it on TrueColour/DirectColour visuals though.
It should probably work on 24 bpp displays too (use 4 bytes/pixel).

The patch is at:
<http://ti.hogia.net/tmp/rdesktop-16.patch-3.gz>

The translate() function should probably be removed and changed into
a XPutPixel(image, x, y, Ctrans(*data++)) loop instead for a small
speed boost.

/Sebastian