Mac compile fix

pull/1/head
dscho 23 years ago
parent 11deabd325
commit 103df7394a

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

Loading…
Cancel
Save