c - X11: how to properly support a 16-bit per pixel display -
i'm doing xlib programming , have support 16-bit display. far know operating truecolor display. there rule of thumb on how allocate colors , free them? on 24 bits displays use raw rgb values colors.
a truecolor visual has fixed colormap can convert rgb pixel value using xalloccolor() usual. xgetvisualinfo() return bitmasks need shift , mask rgb values if prefer.
Comments
Post a Comment