Plan 9 from Bell Labs’s /n/sources/patch/applied/vesa-depth32/readme

Copyright © 2009 Alcatel-Lucent.
Distributed under the Lucent Public License version 1.02.
Download the Plan 9 distribution.


produce correct color channel descriptor for 32 bit depth
vesa modes. the vesa bios omits reserved byte pos/mask
in the mode info for 32 bit, resulting in a r8g8b8 channel
descriptor that doesnt add up in length to 32 bit depth.
this patch will produce the correct x8r8g8b8 channel by
assigning the unmasked part (not used by any rgb component)
of a pixel word to the x channel.
it also doesnt assume any channel ordering and should work
for all rgb modes (16/24/32).

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2009 Alcatel-Lucent. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.