|
|
@ -287,9 +287,9 @@ ScreenInit(int argc, char**argv)
|
|
|
|
CGDisplayPixelsHigh(kCGDirectMainDisplay),
|
|
|
|
CGDisplayPixelsHigh(kCGDirectMainDisplay),
|
|
|
|
bitsPerSample,
|
|
|
|
bitsPerSample,
|
|
|
|
CGDisplaySamplesPerPixel(kCGDirectMainDisplay),4);
|
|
|
|
CGDisplaySamplesPerPixel(kCGDirectMainDisplay),4);
|
|
|
|
rfbScreen->rfbServerFormat->redShift = bitsPerSample*2;
|
|
|
|
rfbScreen->rfbServerFormat.redShift = bitsPerSample*2;
|
|
|
|
rfbScreen->rfbServerFormat->greenShift = bitsPerSample*1;
|
|
|
|
rfbScreen->rfbServerFormat.greenShift = bitsPerSample*1;
|
|
|
|
rfbScreen->rfbServerFormat->blueShift = 0;
|
|
|
|
rfbScreen->rfbServerFormat.blueShift = 0;
|
|
|
|
|
|
|
|
|
|
|
|
gethostname(rfbScreen->rfbThisHost, 255);
|
|
|
|
gethostname(rfbScreen->rfbThisHost, 255);
|
|
|
|
rfbScreen->paddedWidthInBytes = CGDisplayBytesPerRow(kCGDirectMainDisplay);
|
|
|
|
rfbScreen->paddedWidthInBytes = CGDisplayBytesPerRow(kCGDirectMainDisplay);
|
|
|
|