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
7aa9d277
Commit
7aa9d277
authored
Feb 29, 2004
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed valgrind warning
parent
c08bfcfd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
ChangeLog
ChangeLog
+3
-0
rfbregion.c
rfbregion.c
+12
-7
No files found.
ChangeLog
View file @
7aa9d277
2004-02-29 Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
* fixed warning of valgrind for regiontest
2004-02-19 Karl Runge <runge@karlrunge.com>
2004-02-19 Karl Runge <runge@karlrunge.com>
* x11vnc options -nosel -noprimary -visual.
* x11vnc options -nosel -noprimary -visual.
* add clipboard/selection handling.
* add clipboard/selection handling.
...
...
rfbregion.c
View file @
7aa9d277
...
@@ -224,8 +224,9 @@ sraSpanListCount(const sraSpanList *list) {
...
@@ -224,8 +224,9 @@ sraSpanListCount(const sraSpanList *list) {
void
void
sraSpanMergePrevious
(
sraSpan
*
dest
)
{
sraSpanMergePrevious
(
sraSpan
*
dest
)
{
sraSpan
*
prev
=
dest
->
_prev
;
sraSpan
*
prev
=
dest
->
_prev
;
while
((
prev
->
end
==
dest
->
start
)
&&
(
prev
->
_prev
)
&&
while
((
prev
->
_prev
)
&&
(
prev
->
end
==
dest
->
start
)
&&
(
sraSpanListEqual
(
prev
->
subspan
,
dest
->
subspan
)))
{
(
sraSpanListEqual
(
prev
->
subspan
,
dest
->
subspan
)))
{
/*
/*
printf("merge_prev:");
printf("merge_prev:");
...
@@ -244,8 +245,8 @@ sraSpanMergePrevious(sraSpan *dest) {
...
@@ -244,8 +245,8 @@ sraSpanMergePrevious(sraSpan *dest) {
void
void
sraSpanMergeNext
(
sraSpan
*
dest
)
{
sraSpanMergeNext
(
sraSpan
*
dest
)
{
sraSpan
*
next
=
dest
->
_next
;
sraSpan
*
next
=
dest
->
_next
;
while
((
next
->
start
==
dest
->
end
)
&&
while
((
next
->
_next
)
&&
(
next
->
_next
)
&&
(
next
->
start
==
dest
->
end
)
&&
(
sraSpanListEqual
(
next
->
subspan
,
dest
->
subspan
)))
{
(
sraSpanListEqual
(
next
->
subspan
,
dest
->
subspan
)))
{
/*
/*
printf("merge_next:");
printf("merge_next:");
...
@@ -834,7 +835,7 @@ int main(int argc, char** argv)
...
@@ -834,7 +835,7 @@ int main(int argc, char** argv)
rect
.
x2
-
rect
.
x1
,
rect
.
y2
-
rect
.
y1
,
rect
.
x2
-
rect
.
x1
,
rect
.
y2
-
rect
.
y1
,
rect
.
x1
,
rect
.
y1
);
rect
.
x1
,
rect
.
y1
);
sraRgnReleaseIterator
(
i
);
sraRgnReleaseIterator
(
i
);
printf
(
"
\n
20x10+0+0 600x30+0+10 590x10+10+40 30x150+10+50 250x150+350+50 590x100+10+200
\n\n
"
);
printf
(
"
\n
20x10+0+0 600x30+0+10 590x10+10+40 30x150+10+50 250x150+350+50 590x100+10+200
\n\n
"
);
i
=
sraRgnGetReverseIterator
(
region
,
1
,
0
);
i
=
sraRgnGetReverseIterator
(
region
,
1
,
0
);
while
(
sraRgnIteratorNext
(
i
,
&
rect
))
while
(
sraRgnIteratorNext
(
i
,
&
rect
))
...
@@ -842,7 +843,7 @@ int main(int argc, char** argv)
...
@@ -842,7 +843,7 @@ int main(int argc, char** argv)
rect
.
x2
-
rect
.
x1
,
rect
.
y2
-
rect
.
y1
,
rect
.
x2
-
rect
.
x1
,
rect
.
y2
-
rect
.
y1
,
rect
.
x1
,
rect
.
y1
);
rect
.
x1
,
rect
.
y1
);
sraRgnReleaseIterator
(
i
);
sraRgnReleaseIterator
(
i
);
printf
(
"
\n
20x10+0+0 600x30+0+10 590x10+10+40 250x150+350+50 30x150+10+50 590x100+10+200
\n\n
"
);
printf
(
"
\n
20x10+0+0 600x30+0+10 590x10+10+40 250x150+350+50 30x150+10+50 590x100+10+200
\n\n
"
);
i
=
sraRgnGetReverseIterator
(
region
,
1
,
1
);
i
=
sraRgnGetReverseIterator
(
region
,
1
,
1
);
while
(
sraRgnIteratorNext
(
i
,
&
rect
))
while
(
sraRgnIteratorNext
(
i
,
&
rect
))
...
@@ -850,7 +851,11 @@ int main(int argc, char** argv)
...
@@ -850,7 +851,11 @@ int main(int argc, char** argv)
rect
.
x2
-
rect
.
x1
,
rect
.
y2
-
rect
.
y1
,
rect
.
x2
-
rect
.
x1
,
rect
.
y2
-
rect
.
y1
,
rect
.
x1
,
rect
.
y1
);
rect
.
x1
,
rect
.
y1
);
sraRgnReleaseIterator
(
i
);
sraRgnReleaseIterator
(
i
);
printf
(
"
\n
590x100+10+200 250x150+350+50 30x150+10+50 590x10+10+40 600x30+0+10 20x10+0+0
\n\n
"
);
printf
(
"
\n
590x100+10+200 250x150+350+50 30x150+10+50 590x10+10+40 600x30+0+10 20x10+0+0
\n\n
"
);
sraRgnDestroy
(
region
);
sraRgnDestroy
(
region1
);
sraRgnDestroy
(
region2
);
return
(
0
);
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