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
2a4a0f48
Commit
2a4a0f48
authored
Jun 18, 2004
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert c++ comments to c comments
parent
1589d04d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
14 deletions
+11
-14
zrleencodetemplate.c
libvncserver/zrleencodetemplate.c
+8
-8
tight-1.c
test/tight-1.c
+0
-1
LinuxVNC.c
vncterm/LinuxVNC.c
+0
-1
VNCommand.c
vncterm/VNCommand.c
+2
-2
VNConsole.c
vncterm/VNConsole.c
+1
-1
example.c
vncterm/example.c
+0
-1
No files found.
libvncserver/zrleencodetemplate.c
View file @
2a4a0f48
...
...
@@ -134,15 +134,15 @@ void ZRLE_ENCODE_TILE (PIXEL_T* data, int w, int h, zrleOutStream* os)
return
;
}
/
/
Try to work out whether to use RLE and/or a palette. We do this by
//
estimating the number of bytes which will be generated and picking the
//
method which results in the fewest bytes. Of course this may not result
// in the fewest bytes after compression...
/
*
Try to work out whether to use RLE and/or a palette. We do this by
estimating the number of bytes which will be generated and picking the
method which results in the fewest bytes. Of course this may not result
in the fewest bytes after compression... */
useRle
=
FALSE
;
usePalette
=
FALSE
;
estimatedBytes
=
w
*
h
*
(
BPPOUT
/
8
);
/
/ start assuming raw
estimatedBytes
=
w
*
h
*
(
BPPOUT
/
8
);
/
* start assuming raw */
plainRleBytes
=
((
BPPOUT
/
8
)
+
1
)
*
(
runs
+
singlePixels
);
...
...
@@ -216,13 +216,13 @@ void ZRLE_ENCODE_TILE (PIXEL_T* data, int w, int h, zrleOutStream* os)
}
else
{
/
/ no RLE
/
* no RLE */
if
(
usePalette
)
{
int
bppp
;
PIXEL_T
*
ptr
=
data
;
/
/ packed pixels
/
* packed pixels */
assert
(
ph
->
size
<
17
);
...
...
@@ -251,7 +251,7 @@ void ZRLE_ENCODE_TILE (PIXEL_T* data, int w, int h, zrleOutStream* os)
}
}
else
{
/
/ raw
/
* raw */
#ifdef CPIXEL
PIXEL_T
*
ptr
;
...
...
test/tight-1.c
View file @
2a4a0f48
...
...
@@ -13,7 +13,6 @@ int main(int argc,char** argv)
server
->
frameBuffer
=
malloc
(
400
*
300
*
4
);
for
(
j
=
0
;
j
<
400
*
300
*
4
;
j
++
)
server
->
frameBuffer
[
j
]
=
j
;
//server->maxRectsPerUpdate=-1;
rfbInitServer
(
server
);
while
(
time
(
0
)
-
t
<
20
)
{
...
...
vncterm/LinuxVNC.c
View file @
2a4a0f48
...
...
@@ -48,7 +48,6 @@ void do_key(rfbBool down,rfbKeySym keySym,rfbClientPtr cl)
if
(
keySym
<
0x100
)
{
int
ret
;
//rfbLog("do_key: %c (0x%lx)\n",(char)keySym,keySym);
ret
=
ioctl
(
tty_inject_device
,
TIOCSTI
,
&
keySym
);
if
(
ret
<
0
)
{
static
char
device
[
64
];
...
...
vncterm/VNCommand.c
View file @
2a4a0f48
...
...
@@ -44,7 +44,7 @@ int main(int argc, char **argv)
dup2
(
in
[
0
],
0
);
dup2
(
out
[
1
],
1
);
dup2
(
err
[
1
],
2
);
/
/setbuf(stdin,NULL);
/
*setbuf(stdin,NULL);*/
execvp
(
argv
[
programArg0
],
argv
+
programArg0
);
}
...
...
@@ -63,7 +63,7 @@ int main(int argc, char **argv)
FD_ZERO
(
&
fs
);
FD_SET
(
out
[
0
],
&
fs
);
FD_SET
(
err
[
0
],
&
fs
);
/
/FD_SET(0,&fs);
/
*FD_SET(0,&fs);*/
tv
.
tv_sec
=
0
;
tv
.
tv_usec
=
5000
;
input_pipe
=
fdopen
(
in
[
1
],
"w"
);
...
...
vncterm/VNConsole.c
View file @
2a4a0f48
...
...
@@ -416,7 +416,7 @@ void vcPtrAddEventProc(int buttonMask,int x,int y,rfbClientPtr cl)
if
(
cy
<
0
)
cy
=
0
;
else
if
(
cy
>=
c
->
height
)
cy
=
c
->
height
-
1
;
pos
=
cy
*
c
->
width
+
cx
;
/
/ mark
/
* mark */
if
(
!
c
->
currentlyMarking
)
{
c
->
currentlyMarking
=
TRUE
;
c
->
markStart
=
pos
;
...
...
vncterm/example.c
View file @
2a4a0f48
...
...
@@ -19,7 +19,6 @@ int main(int argc,char **argv)
l
=
strlen
(
buffer
)
-
1
;
while
(
l
>=
0
&&
buffer
[
l
]
==
'\n'
)
buffer
[
l
]
=
0
;
//rfbLog("%s (%d)",buffer,strlen(buffer));
if
(
!
strcmp
(
buffer
,
"quit"
))
return
(
0
);
if
(
!
strcmp
(
buffer
,
"s"
))
...
...
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