9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] vncv(1) 16bit colors regression
@ 2022-05-08 16:55 qwx
  0 siblings, 0 replies; only message in thread
From: qwx @ 2022-05-08 16:55 UTC (permalink / raw)
  To: 9front


Commit 90a08cf1fda8eaf4afe98f74a7572fb36b7ef369 from a while ago broke
16bit color drawing in vncv, connecting to a unix: red and blue
channels are swapped.  Unix uses Xvfb with a 1280x1024x16 screen +
x11vnc; 9front screen is XRGB32.

	; vncv -v t490sw
	server version: RFB 003.008

	auth type 2
	32 bpp, 32 depth, 0x68081828 chan, 1 truecolor, 0 bigendian

Specifically: /sys/src/cmd/vnc/color.c:143,146

	if(bpp == 32 && v->Pixfmt.bpp == 16){
		cvtpixels = cvt16to32;
		goto Done;

Removing this fixes it.  It was necessary for the AMT kvm stuff, but I
don't know much about that.

What do you think?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-08 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-08 16:55 [9front] vncv(1) 16bit colors regression qwx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).