diff options
author | dscho <dscho> | 2004-12-20 21:59:13 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-12-20 21:59:13 +0000 |
commit | 19a0d05bb90f5c38c0b245dbcff3bfdcedaf5b74 (patch) | |
tree | 0d4c0772b11ac3d9b73860f7b04ecbe50987e2fa /examples | |
parent | 094c01bdce486d2d6c65b461dae254cc6c0451f3 (diff) | |
download | libtdevnc-19a0d05bb90f5c38c0b245dbcff3bfdcedaf5b74.tar.gz libtdevnc-19a0d05bb90f5c38c0b245dbcff3bfdcedaf5b74.zip |
compile fix on mac; still untested...
Diffstat (limited to 'examples')
-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); |