diff options
author | dscho <dscho> | 2002-04-24 09:16:28 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-04-24 09:16:28 +0000 |
commit | 48e64b87c94f5c799d1fea16aacf3e7a96832535 (patch) | |
tree | d79881f0da7b1a95c84e9ad42f2eb7ab9abbbe84 /main.c | |
parent | e66eeecd62f62acc3d86f737d979f97a529686b0 (diff) | |
download | libtdevnc-48e64b87c94f5c799d1fea16aacf3e7a96832535.tar.gz libtdevnc-48e64b87c94f5c799d1fea16aacf3e7a96832535.zip |
bug for 3 bpp planes (as Mac OSX)
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -538,9 +538,15 @@ rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv, format->greenShift = bitsPerSample; format->blueShift = bitsPerSample * 2; } else { - format->redShift = bitsPerSample*3; - format->greenShift = bitsPerSample*2; - format->blueShift = bitsPerSample; + if(bytesPerPixel==3) { + format->redShift = bitsPerSample*2; + format->greenShift = bitsPerSample*1; + format->blueShift = 0; + } else { + format->redShift = bitsPerSample*3; + format->greenShift = bitsPerSample*2; + format->blueShift = bitsPerSample; + } } } |