LibVNC / libvncserver

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
GNU General Public License v2.0
1.1k stars 482 forks source link

Make alpha configurable #496

Closed badda71 closed 2 years ago

badda71 commented 2 years ago

When connecing a libvncserver-based client to a server and setting the pixel format to 32bit, the alpha channel of the pixels in the client framebuffer is always set to 0x00. This is causing issues with my graphics libraries where an alpha of 0x00 is defined as fully transparent, thus not rendering to the screen. This means, I have to manually change all alpha-values in the framebuffer to 0xff before rendering to the screen, which in turn means a loss of performance. This probably applies to other bit depths as well. It would be better to be able to configure the default opaque alpha value in linvncserver.

bk138 commented 2 years ago

This is actually a dupe of #277, me thinks. Please subscribe there.