Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
dimbor
nx-libs
Commits
5d7b6db0
You need to sign in or sign up before continuing.
Commit
5d7b6db0
authored
Dec 31, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drawable.c: make abort flag a Boolean
parent
54dd29cc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
Drawable.c
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+16
-16
Drawable.h
nx-X11/programs/Xserver/hw/nxagent/Drawable.h
+1
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
View file @
5d7b6db0
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
/*
/*
* The rectangles composing a region are de- fragmented to reduce the
* The rectangles composing a region are de- fragmented to reduce the
* number of synch
- ronizing PutImage'
s.
* number of synch
ronizing PutImage()
s.
*/
*/
#define ADVANCED_BOXES_DEFRAG
#define ADVANCED_BOXES_DEFRAG
...
@@ -588,7 +588,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
...
@@ -588,7 +588,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
unsigned
long
now
=
GetTimeInMillis
();
unsigned
long
now
=
GetTimeInMillis
();
nxagentSynchronization
.
abort
=
0
;
nxagentSynchronization
.
abort
=
False
;
/*
/*
* Going to split the updated region into small blocks.
* Going to split the updated region into small blocks.
...
@@ -652,7 +652,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
...
@@ -652,7 +652,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
"[%lu] ms elapsed.
\n
"
,
elapsedTime
);
"[%lu] ms elapsed.
\n
"
,
elapsedTime
);
#endif
#endif
nxagentSynchronization
.
abort
=
1
;
nxagentSynchronization
.
abort
=
True
;
goto
nxagentSynchronizeRegionStop
;
goto
nxagentSynchronizeRegionStop
;
}
}
...
@@ -670,7 +670,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
...
@@ -670,7 +670,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
nxagentBlocking
);
nxagentBlocking
);
#endif
#endif
nxagentSynchronization
.
abort
=
1
;
nxagentSynchronization
.
abort
=
True
;
goto
nxagentSynchronizeRegionStop
;
goto
nxagentSynchronizeRegionStop
;
}
}
...
@@ -687,7 +687,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
...
@@ -687,7 +687,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
nxagentCongestion
);
nxagentCongestion
);
#endif
#endif
nxagentSynchronization
.
abort
=
1
;
nxagentSynchronization
.
abort
=
True
;
goto
nxagentSynchronizeRegionStop
;
goto
nxagentSynchronizeRegionStop
;
}
}
...
@@ -834,7 +834,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
...
@@ -834,7 +834,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
"new input events.
\n
"
);
"new input events.
\n
"
);
#endif
#endif
nxagentSynchronization
.
abort
=
1
;
nxagentSynchronization
.
abort
=
True
;
goto
nxagentSynchronizeRegionStop
;
goto
nxagentSynchronizeRegionStop
;
}
}
...
@@ -854,7 +854,7 @@ nxagentSynchronizeRegionStop:
...
@@ -854,7 +854,7 @@ nxagentSynchronizeRegionStop:
if
(
!
nxagentOption
(
Shadow
))
if
(
!
nxagentOption
(
Shadow
))
{
{
if
(
nxagentSynchronization
.
abort
==
1
)
if
(
nxagentSynchronization
.
abort
)
{
{
/*
/*
* Storing the pointer to the drawable we were synchronizing
* Storing the pointer to the drawable we were synchronizing
...
@@ -1031,7 +1031,7 @@ void nxagentSynchronizeDrawablePredicate(void *p0, XID x1, void *p2)
...
@@ -1031,7 +1031,7 @@ void nxagentSynchronizeDrawablePredicate(void *p0, XID x1, void *p2)
* synchronizations.
* synchronizations.
*/
*/
if
(
nxagentSynchronization
.
abort
==
1
||
if
(
nxagentSynchronization
.
abort
||
nxagentDrawableStatus
(
pDrawable
)
==
Synchronized
)
nxagentDrawableStatus
(
pDrawable
)
==
Synchronized
)
{
{
return
;
return
;
...
@@ -1138,7 +1138,7 @@ FIXME: This condition sounds only as a complication, as the break
...
@@ -1138,7 +1138,7 @@ FIXME: This condition sounds only as a complication, as the break
nxagentCongestion, nxagentBlocking);
nxagentCongestion, nxagentBlocking);
#endif
#endif
nxagentSynchronization.abort =
1
;
nxagentSynchronization.abort =
True
;
return;
return;
}
}
...
@@ -1179,7 +1179,7 @@ FIXME: This condition sounds only as a complication, as the break
...
@@ -1179,7 +1179,7 @@ FIXME: This condition sounds only as a complication, as the break
* clear it.
* clear it.
*/
*/
if
(
nxagentSynchronization
.
abort
==
0
&&
if
(
!
nxagentSynchronization
.
abort
&&
shouldClearHiddenRegion
)
shouldClearHiddenRegion
)
{
{
#ifdef TEST
#ifdef TEST
...
@@ -1243,7 +1243,7 @@ FIXME: All drawables should be set as synchronized and never marked as
...
@@ -1243,7 +1243,7 @@ FIXME: All drawables should be set as synchronized and never marked as
int
doRoundRobin
=
(
nxagentSynchronization
.
pDrawable
!=
NULL
);
int
doRoundRobin
=
(
nxagentSynchronization
.
pDrawable
!=
NULL
);
nxagentSynchronization
.
abort
=
0
;
nxagentSynchronization
.
abort
=
False
;
/*
/*
* Synchronize the windows.
* Synchronize the windows.
...
@@ -1260,7 +1260,7 @@ FIXME: All drawables should be set as synchronized and never marked as
...
@@ -1260,7 +1260,7 @@ FIXME: All drawables should be set as synchronized and never marked as
#ifdef TEST
#ifdef TEST
if
(
nxagentSynchronization
.
abort
==
0
&&
if
(
!
nxagentSynchronization
.
abort
&&
nxagentSynchronization
.
windowBitmaps
==
0
&&
nxagentSynchronization
.
windowBitmaps
==
0
&&
doRoundRobin
==
0
)
doRoundRobin
==
0
)
{
{
...
@@ -1280,7 +1280,7 @@ FIXME: All drawables should be set as synchronized and never marked as
...
@@ -1280,7 +1280,7 @@ FIXME: All drawables should be set as synchronized and never marked as
* Synchronize the backgrounds.
* Synchronize the backgrounds.
*/
*/
if
(
nxagentSynchronization
.
abort
==
0
&&
if
(
!
nxagentSynchronization
.
abort
&&
NXAGENT_SHOULD_SYNCHRONIZE_CORRUPTED_BACKGROUNDS
(
mask
))
NXAGENT_SHOULD_SYNCHRONIZE_CORRUPTED_BACKGROUNDS
(
mask
))
{
{
#ifdef TEST
#ifdef TEST
...
@@ -1292,7 +1292,7 @@ FIXME: All drawables should be set as synchronized and never marked as
...
@@ -1292,7 +1292,7 @@ FIXME: All drawables should be set as synchronized and never marked as
#ifdef TEST
#ifdef TEST
if
(
nxagentSynchronization
.
abort
==
0
&&
if
(
!
nxagentSynchronization
.
abort
&&
nxagentSynchronization
.
backgroundBitmaps
==
0
&&
nxagentSynchronization
.
backgroundBitmaps
==
0
&&
doRoundRobin
==
0
)
doRoundRobin
==
0
)
{
{
...
@@ -1315,7 +1315,7 @@ FIXME: All drawables should be set as synchronized and never marked as
...
@@ -1315,7 +1315,7 @@ FIXME: All drawables should be set as synchronized and never marked as
* the pixmap in a copy or in a composite operation.
* the pixmap in a copy or in a composite operation.
*/
*/
if
(
nxagentSynchronization
.
abort
==
0
&&
if
(
!
nxagentSynchronization
.
abort
&&
NXAGENT_SHOULD_SYNCHRONIZE_CORRUPTED_PIXMAPS
(
mask
))
NXAGENT_SHOULD_SYNCHRONIZE_CORRUPTED_PIXMAPS
(
mask
))
{
{
#ifdef TEST
#ifdef TEST
...
@@ -1326,7 +1326,7 @@ FIXME: All drawables should be set as synchronized and never marked as
...
@@ -1326,7 +1326,7 @@ FIXME: All drawables should be set as synchronized and never marked as
nxagentSynchronizeDrawablePredicate
,
&
breakMask
);
nxagentSynchronizeDrawablePredicate
,
&
breakMask
);
if
(
nxagentSynchronization
.
abort
==
0
&&
if
(
!
nxagentSynchronization
.
abort
&&
nxagentSynchronization
.
pixmapBitmaps
==
0
&&
nxagentSynchronization
.
pixmapBitmaps
==
0
&&
doRoundRobin
==
0
)
doRoundRobin
==
0
)
{
{
...
...
nx-X11/programs/Xserver/hw/nxagent/Drawable.h
View file @
5d7b6db0
...
@@ -38,7 +38,7 @@ typedef struct
...
@@ -38,7 +38,7 @@ typedef struct
{
{
DrawablePtr
pDrawable
;
DrawablePtr
pDrawable
;
int
drawableType
;
int
drawableType
;
int
abort
;
Bool
abort
;
int
windowBitmaps
;
int
windowBitmaps
;
int
pixmapBitmaps
;
int
pixmapBitmaps
;
int
backgroundBitmaps
;
int
backgroundBitmaps
;
...
...
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