Commit 48e64b87 authored by dscho's avatar dscho

bug for 3 bpp planes (as Mac OSX)

parent e66eeecd
...@@ -538,9 +538,15 @@ rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv, ...@@ -538,9 +538,15 @@ rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv,
format->greenShift = bitsPerSample; format->greenShift = bitsPerSample;
format->blueShift = bitsPerSample * 2; format->blueShift = bitsPerSample * 2;
} else { } else {
format->redShift = bitsPerSample*3; if(bytesPerPixel==3) {
format->greenShift = bitsPerSample*2; format->redShift = bitsPerSample*2;
format->blueShift = bitsPerSample; format->greenShift = bitsPerSample*1;
format->blueShift = 0;
} else {
format->redShift = bitsPerSample*3;
format->greenShift = bitsPerSample*2;
format->blueShift = bitsPerSample;
}
} }
} }
......
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