re bit static color will clients like it in article apr vxcrna cern ch roeber vxcrna cern ch frederick roeber writes i m writing an x server for some video generation equipment the hardware is truecolor in yuv space in x terms it has a bit static color visual i would really like to have the server just present this static visual but i m not sure if this will be acceptable to most x clients the three problems i see are the colormap though huge is static all pixels would be bytes wide because the hardware actually lives in yuv space the translation rgb yuv will introduce some rounding error we tried to ship an x server once that only supported a bit truecolor visual the main problems we encountered were clients written with logic like the following if defaultdepth assume default depth is bit these clients need an bit deep visual in the root window to run correctly other clients didn t even bother to do that much and just outright assumed they had a dynamic visual class with a dynamic colormap xstorecolors doesn t work on cmaps associated with static or truecolor visual classes but many clients don t bother to check they just start throwing xstorecolor calls at you though both are clearly client error this is the case with so many clients that it s easier for you to expose bit pseudocolor as a default root window visual than it ever would be for all these client writers to change their clients to do the right thing paul pmartz dsd es com evans sutherland
