Remix.run Logo
o11c 4 days ago

All sorts of things in X11 are "defined" as a particular thing in the base standard, then changed in protocol extensions. You really shouldn't be writing raw pixels anyway (and most people don't since breaks if your monitor is using 8-bit or 16-bit, for example).

skeezyboy 3 days ago | parent | next [-]

> You really shouldn't be writing raw pixels anyway (and most people don't since breaks if your monitor is using 8-bit or 16-bit, for example).

what are you talking about?

bitwize 3 days ago | parent [-]

X11 supports all sorts of obsolete pixel formats, including 1bpp mono, 4bpp and 8bpp indexed color, and 16bpp "high color" modes. In order to display an image in X11, you need to understand the pixel size, organization, and how colors are mapped to pixel values (all of which are available in a data structure called a visual).

whatevaa 4 days ago | parent | prev [-]

Amazing standard you got there.

yxhuvud 3 days ago | parent [-]

To be fair, the same is very true with Wayland - you can't do much without extensions.