mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 21:32:13 +03:00
627a1c6c1b
While looking into what it might take to support 10bpc (30bpp) displays (https://github.com/wez/wezterm/issues/240) I was experimenting with Xephyr at a reduced 16bpp depth and noticed that the server still offered a 32bpp TrueColor depth option. This commit adjusts the window/bitmap code to allow it to select depths 24bpp or 32bpp, preferring the largest depth. we restrict ourselves to 24 and 32 bit selections for this, as those appear to be bit for bit compatible for the r/g/b channels. I suspect that 10bpc will require some scaling somewhere. This change allows running wezterm against the reduced depth Xephyr, but since Xephyr doesn't support GL it runs with the software renderer; I don't know quite how opengl is going to play with this. I can confirm that running wezterm on my native 24bpp display when it picks a 32bpp visual does run with opengl enabled, so maybe this is good enough? |
||
---|---|---|
.. | ||
examples | ||
src | ||
build.rs | ||
Cargo.toml |