summaryrefslogtreecommitdiffstats
path: root/mac.c
diff options
context:
space:
mode:
authordscho <dscho>2002-04-30 06:49:45 +0000
committerdscho <dscho>2002-04-30 06:49:45 +0000
commit103df7394af3b6cc046a681ad0d6b554586d26d1 (patch)
tree5f117a7a6e6ac266df63c39e2fbf1342228457a9 /mac.c
parent11deabd325f252b900754b2830cd2b600c302ca1 (diff)
downloadlibtdevnc-103df7394af3b6cc046a681ad0d6b554586d26d1.tar.gz
libtdevnc-103df7394af3b6cc046a681ad0d6b554586d26d1.zip
Mac compile fix
Diffstat (limited to 'mac.c')
-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);