summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mac.c b/mac.c
index ede3e3d..732741c 100644
--- a/mac.c
+++ b/mac.c
@@ -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);