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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -