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
8e66435a
Commit
8e66435a
authored
Sep 06, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GCOps.c: code simplification / scope improvements
parent
41bc1de9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
GCOps.c
nx-X11/programs/Xserver/hw/nxagent/GCOps.c
+5
-14
No files found.
nx-X11/programs/Xserver/hw/nxagent/GCOps.c
View file @
8e66435a
...
...
@@ -296,7 +296,6 @@ FIXME: The popup could be synchronized with one single put image,
#endif
RegionRec
corruptedRegion
;
RegionInit
(
&
corruptedRegion
,
NullBox
,
1
);
RegionIntersect
(
&
corruptedRegion
,
...
...
@@ -374,7 +373,6 @@ FIXME: The popup could be synchronized with one single put image,
else
{
RegionRec
tmpRegion
;
RegionInit
(
&
tmpRegion
,
NullBox
,
1
);
#ifdef DEBUG
...
...
@@ -540,14 +538,13 @@ FIXME: The popup could be synchronized with one single put image,
{
RegionPtr
pSrcRegion
=
nxagentCreateRegion
(
pSrcDrawable
,
NULL
,
srcx
,
srcy
,
width
,
height
);
RegionRec
corruptedRegion
;
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentDeferCopyArea: Source region [%d,%d,%d,%d].
\n
"
,
pSrcRegion
->
extents
.
x1
,
pSrcRegion
->
extents
.
y1
,
pSrcRegion
->
extents
.
x2
,
pSrcRegion
->
extents
.
y2
);
#endif
RegionRec
corruptedRegion
;
RegionInit
(
&
corruptedRegion
,
NullBox
,
1
);
RegionIntersect
(
&
corruptedRegion
,
...
...
@@ -728,9 +725,7 @@ RegionPtr nxagentCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
unsigned
int
format
=
(
depth
==
1
)
?
XYPixmap
:
ZPixmap
;
int
leftPad
=
0
;
int
length
=
nxagentImageLength
(
width
,
height
,
format
,
leftPad
,
depth
);
int
length
=
nxagentImageLength
(
width
,
height
,
format
,
0
,
depth
);
if
((
data
=
malloc
(
length
))
==
NULL
)
{
...
...
@@ -742,7 +737,6 @@ RegionPtr nxagentCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
}
unsigned
long
planeMask
=
0xffffffff
;
fbGetImage
(
nxagentVirtualDrawable
(
pSrcDrawable
),
srcx
,
srcy
,
width
,
height
,
format
,
planeMask
,
data
);
/*
...
...
@@ -751,7 +745,7 @@ RegionPtr nxagentCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
*/
nxagentPutImage
(
pDstDrawable
,
pGC
,
depth
,
dstx
,
dsty
,
width
,
height
,
leftPad
,
format
,
data
);
width
,
height
,
0
,
format
,
data
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentCopyArea: Realize Pixmap %p virtual %p x %d y %d w %d h %d
\n
"
,
...
...
@@ -939,9 +933,7 @@ RegionPtr nxagentCopyPlane(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
unsigned
int
format
=
(
depth
==
1
)
?
XYPixmap
:
ZPixmap
;
int
leftPad
=
0
;
int
length
=
nxagentImageLength
(
width
,
height
,
format
,
leftPad
,
depth
);
int
length
=
nxagentImageLength
(
width
,
height
,
format
,
0
,
depth
);
if
((
data
=
malloc
(
length
))
==
NULL
)
{
...
...
@@ -953,7 +945,6 @@ RegionPtr nxagentCopyPlane(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
}
unsigned
long
planeMask
=
0xffffffff
;
fbGetImage
(
nxagentVirtualDrawable
(
pSrcDrawable
),
srcx
,
srcy
,
width
,
height
,
format
,
planeMask
,
data
);
/*
...
...
@@ -962,7 +953,7 @@ RegionPtr nxagentCopyPlane(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
*/
nxagentPutImage
(
pDstDrawable
,
pGC
,
depth
,
dstx
,
dsty
,
width
,
height
,
leftPad
,
format
,
data
);
width
,
height
,
0
,
format
,
data
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentCopyPlane: Synchronize Pixmap %p virtual %p x %d y %d w %d h %d
\n
"
,
...
...
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