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
Show 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
...
@@ -76,21 +76,39 @@ void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,in
LOCK
(
cl
->
updateMutex
);
LOCK
(
cl
->
updateMutex
);
if
(
cl
->
useCopyRect
)
{
if
(
cl
->
useCopyRect
)
{
sraRegionPtr
modifiedRegionBackup
;
sraRegionPtr
modifiedRegionBackup
;
if
(
!
sraRgnEmpty
(
cl
->
copyRegion
)
&&
(
cl
->
copyDX
!=
dx
||
cl
->
copyDY
!=
dy
))
{
if
(
!
sraRgnEmpty
(
cl
->
copyRegion
))
{
sraRgnOr
(
cl
->
copyRegion
,
cl
->
modifiedRegion
);
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
);
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
);
sraRgnOr
(
cl
->
copyRegion
,
copyRegion
);
cl
->
copyDX
=
dx
;
cl
->
copyDX
=
dx
;
cl
->
copyDY
=
dy
;
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
);
modifiedRegionBackup
=
sraRgnCreateRgn
(
cl
->
modifiedRegion
);
sraRgnOffset
(
modifiedRegionBackup
,
dx
,
dy
);
sraRgnOffset
(
modifiedRegionBackup
,
dx
,
dy
);
sraRgnAnd
(
modifiedRegionBackup
,
cl
->
copyRegion
);
sraRgnAnd
(
modifiedRegionBackup
,
cl
->
copyRegion
);
sraRgnOr
(
cl
->
modifiedRegion
,
modifiedRegionBackup
);
sraRgnOr
(
cl
->
modifiedRegion
,
modifiedRegionBackup
);
sraRgnDestroy
(
modifiedRegionBackup
);
sraRgnDestroy
(
modifiedRegionBackup
);
#if 0
//TODO: is this needed? Or does it mess up deferring?
/* while(!sraRgnEmpty(cl->copyRegion)) */ {
/* while(!sraRgnEmpty(cl->copyRegion)) */ {
#ifdef HAVE_PTHREADS
#ifdef HAVE_PTHREADS
if(!cl->screen->backgroundLoop)
if(!cl->screen->backgroundLoop)
...
@@ -104,6 +122,7 @@ void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,in
...
@@ -104,6 +122,7 @@ void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,in
continue;
continue;
}
}
}
}
#endif
}
else
{
}
else
{
sraRgnOr
(
cl
->
modifiedRegion
,
copyRegion
);
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