diff options
-rw-r--r-- | examples/mac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/mac.c b/examples/mac.c index ca4fe3d..aca7f14 100644 --- a/examples/mac.c +++ b/examples/mac.c @@ -457,11 +457,11 @@ 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->serverFormat.redShift = bitsPerSample*2; + rfbScreen->serverFormat.greenShift = bitsPerSample*1; + rfbScreen->serverFormat.blueShift = 0; - gethostname(rfbScreen->rfbThisHost, 255); + gethostname(rfbScreen->thisHost, 255); rfbScreen->paddedWidthInBytes = CGDisplayBytesPerRow(kCGDirectMainDisplay); rfbScreen->frameBuffer = (char *)CGDisplayBaseAddress(kCGDirectMainDisplay); @@ -470,7 +470,7 @@ ScreenInit(int argc, char**argv) rfbScreen->kbdAddEvent = KbdAddEvent; if(sharedMode) { - rfbScreen->rfbAlwaysShared = TRUE; + rfbScreen->alwaysShared = TRUE; } rfbInitServer(rfbScreen); |