Commit 19a0d05b authored by dscho's avatar dscho

compile fix on mac; still untested...

parent 094c01bd
...@@ -457,11 +457,11 @@ ScreenInit(int argc, char**argv) ...@@ -457,11 +457,11 @@ ScreenInit(int argc, char**argv)
CGDisplayPixelsHigh(kCGDirectMainDisplay), CGDisplayPixelsHigh(kCGDirectMainDisplay),
bitsPerSample, bitsPerSample,
CGDisplaySamplesPerPixel(kCGDirectMainDisplay),4); CGDisplaySamplesPerPixel(kCGDirectMainDisplay),4);
rfbScreen->rfbServerFormat.redShift = bitsPerSample*2; rfbScreen->serverFormat.redShift = bitsPerSample*2;
rfbScreen->rfbServerFormat.greenShift = bitsPerSample*1; rfbScreen->serverFormat.greenShift = bitsPerSample*1;
rfbScreen->rfbServerFormat.blueShift = 0; rfbScreen->serverFormat.blueShift = 0;
gethostname(rfbScreen->rfbThisHost, 255); gethostname(rfbScreen->thisHost, 255);
rfbScreen->paddedWidthInBytes = CGDisplayBytesPerRow(kCGDirectMainDisplay); rfbScreen->paddedWidthInBytes = CGDisplayBytesPerRow(kCGDirectMainDisplay);
rfbScreen->frameBuffer = rfbScreen->frameBuffer =
(char *)CGDisplayBaseAddress(kCGDirectMainDisplay); (char *)CGDisplayBaseAddress(kCGDirectMainDisplay);
...@@ -470,7 +470,7 @@ ScreenInit(int argc, char**argv) ...@@ -470,7 +470,7 @@ ScreenInit(int argc, char**argv)
rfbScreen->kbdAddEvent = KbdAddEvent; rfbScreen->kbdAddEvent = KbdAddEvent;
if(sharedMode) { if(sharedMode) {
rfbScreen->rfbAlwaysShared = TRUE; rfbScreen->alwaysShared = TRUE;
} }
rfbInitServer(rfbScreen); rfbInitServer(rfbScreen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment