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
8e9f427a
Commit
8e9f427a
authored
Oct 16, 2001
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scheduleCopyRegion no longer sends frameBufferUpdates (no longer clobbers
deferring)
parent
2c4869fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
main.c
main.c
+23
-4
No files found.
main.c
View file @
8e9f427a
...
...
@@ -76,21 +76,39 @@ void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,in
LOCK
(
cl
->
updateMutex
);
if
(
cl
->
useCopyRect
)
{
sraRegionPtr
modifiedRegionBackup
;
if
(
!
sraRgnEmpty
(
cl
->
copyRegion
)
&&
(
cl
->
copyDX
!=
dx
||
cl
->
copyDY
!=
dy
))
{
sraRgnOr
(
cl
->
copyRegion
,
cl
->
modifiedRegion
);
sraRgnMakeEmpty
(
cl
->
copyRegion
);
if
(
!
sraRgnEmpty
(
cl
->
copyRegion
))
{
if
(
cl
->
copyDX
!=
dx
||
cl
->
copyDY
!=
dy
)
{
/* if a copyRegion was not yet executed, treat it as a
* modifiedRegion. The idea: in this case it could be
* source of the new copyRect or modified anyway. */
sraRgnOr
(
cl
->
modifiedRegion
,
cl
->
copyRegion
);
sraRgnMakeEmpty
(
cl
->
copyRegion
);
}
else
{
/* we have to set the intersection of the source of the copy
* and the old copy to modified. */
modifiedRegionBackup
=
sraRgnCreateRgn
(
copyRegion
);
sraRgnOffset
(
modifiedRegionBackup
,
-
dx
,
-
dy
);
sraRgnAnd
(
modifiedRegionBackup
,
cl
->
copyRegion
);
sraRgnOr
(
cl
->
modifiedRegion
,
modifiedRegionBackup
);
sraRgnDestroy
(
modifiedRegionBackup
);
}
}
sraRgnOr
(
cl
->
copyRegion
,
copyRegion
);
cl
->
copyDX
=
dx
;
cl
->
copyDY
=
dy
;
/* if there were modified regions, which are now copied: */
/* if there were modified regions, which are now copied,
* mark them as modified, because the source of these can be overlapped
* either by new modified or now copied regions. */
modifiedRegionBackup
=
sraRgnCreateRgn
(
cl
->
modifiedRegion
);
sraRgnOffset
(
modifiedRegionBackup
,
dx
,
dy
);
sraRgnAnd
(
modifiedRegionBackup
,
cl
->
copyRegion
);
sraRgnOr
(
cl
->
modifiedRegion
,
modifiedRegionBackup
);
sraRgnDestroy
(
modifiedRegionBackup
);
#if 0
//TODO: is this needed? Or does it mess up deferring?
/* while(!sraRgnEmpty(cl->copyRegion)) */ {
#ifdef HAVE_PTHREADS
if(!cl->screen->backgroundLoop)
...
...
@@ -104,6 +122,7 @@ void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,in
continue;
}
}
#endif
}
else
{
sraRgnOr
(
cl
->
modifiedRegion
,
copyRegion
);
}
...
...
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