[ros-kernel] about RLE
Ge van Geldorp
ge at gse.nl
Sat Nov 15 10:21:50 CET 2003
> From: Jonathan Wilson
>
> can someone explain to me what needs doing as far as RLE
> support goes and just how much code we need for RLE?
>
> Do we actually need to store bitmaps in RAM as RLE
> compressed? Do we need to write RLE compressed bitmaps out
> and/or compress uncompressed data?
>
> Or do we only need (to be compilent with windows) a way to
> handle existing RLE compressed bitmaps and to make sure that
> they get uncompressed on loading?
The way Wine handles this is by uncompressing the bitmaps in SetDIBits()
and SetDIBitsToDevice(). If it works for them, it should work for us.
Since we don't implement NtGdiSetDIBitsToDevice() yet, you only have to
implement this in NtGdiSetDIBits().
Loading compressed bitmaps from files or resources is handled in user32
by reading the bits and then calling NtGdiCreateDIBitmap(), which in
turn calls NtGdiSetDIBits() so you automatically cover those cases too.
Gé van Geldorp.
More information about the Ros-kernel
mailing list