Commit 48e64b87 authored by dscho's avatar dscho

bug for 3 bpp planes (as Mac OSX)

parent e66eeecd
...@@ -537,12 +537,18 @@ rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv, ...@@ -537,12 +537,18 @@ rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv,
format->redShift = 0; format->redShift = 0;
format->greenShift = bitsPerSample; format->greenShift = bitsPerSample;
format->blueShift = bitsPerSample * 2; format->blueShift = bitsPerSample * 2;
} else {
if(bytesPerPixel==3) {
format->redShift = bitsPerSample*2;
format->greenShift = bitsPerSample*1;
format->blueShift = 0;
} else { } else {
format->redShift = bitsPerSample*3; format->redShift = bitsPerSample*3;
format->greenShift = bitsPerSample*2; format->greenShift = bitsPerSample*2;
format->blueShift = bitsPerSample; format->blueShift = bitsPerSample;
} }
} }
}
/* cursor */ /* cursor */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment