Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
19a0d05b
Commit
19a0d05b
authored
Dec 20, 2004
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile fix on mac; still untested...
parent
094c01bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mac.c
examples/mac.c
+5
-5
No files found.
examples/mac.c
View file @
19a0d05b
...
@@ -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
->
rfbS
erverFormat
.
redShift
=
bitsPerSample
*
2
;
rfbScreen
->
s
erverFormat
.
redShift
=
bitsPerSample
*
2
;
rfbScreen
->
rfbS
erverFormat
.
greenShift
=
bitsPerSample
*
1
;
rfbScreen
->
s
erverFormat
.
greenShift
=
bitsPerSample
*
1
;
rfbScreen
->
rfbS
erverFormat
.
blueShift
=
0
;
rfbScreen
->
s
erverFormat
.
blueShift
=
0
;
gethostname
(
rfbScreen
->
rfbT
hisHost
,
255
);
gethostname
(
rfbScreen
->
t
hisHost
,
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
->
rfbA
lwaysShared
=
TRUE
;
rfbScreen
->
a
lwaysShared
=
TRUE
;
}
}
rfbInitServer
(
rfbScreen
);
rfbInitServer
(
rfbScreen
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment