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
eef408c1
Commit
eef408c1
authored
Jul 28, 2003
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first beginnings of automatic tests, thanks to libvncclient
parent
9f0a1a3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
tight-1.c
test/tight-1.c
+25
-0
No files found.
test/tight-1.c
0 → 100644
View file @
eef408c1
#include <rfb/rfb.h>
#include <rfb/rfbclient.h>
int
main
(
int
argc
,
char
**
argv
)
{
int
i
,
j
;
rfbScreenInfoPtr
server
=
rfbGetScreen
(
&
argc
,
argv
,
400
,
300
,
8
,
3
,
4
);
rfbClient
*
client
=
rfbGetClient
(
&
argc
,
argv
,
8
,
3
,
4
);
server
->
frameBuffer
=
malloc
(
400
*
300
*
4
);
for
(
j
=
0
;
j
<
400
*
300
*
4
;
j
++
)
server
->
frameBuffer
[
j
]
=
j
;
//server->maxRectsPerUpdate=-1;
rfbInitServer
(
server
);
while
(
1
)
{
for
(
j
=
0
;
j
<
400
;
j
+=
10
)
for
(
i
=
0
;
i
<
300
;
i
+=
10
)
rfbMarkRectAsModified
(
server
,
i
,
j
,
i
+
5
,
j
+
5
);
rfbProcessEvents
(
server
,
50
);
}
return
(
0
);
}
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