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
c8383b83
Commit
c8383b83
authored
Oct 27, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Window.c: indent ifdefs for better readability
parent
df531c16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
46 deletions
+43
-46
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+43
-46
No files found.
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
c8383b83
...
...
@@ -269,9 +269,9 @@ Bool nxagentCreateWindow(WindowPtr pWin)
{
nxagentClearSplash
(
nxagentRootTileWindow
);
}
#ifdef NXAGENT_LOGO_DEBUG
#ifdef NXAGENT_LOGO_DEBUG
fprintf
(
stderr
,
"nxagentCreateWindow: nxagentSplashCount [%d]
\n
"
,
nxagentSplashCount
);
#endif
#endif
if
(
pWin
->
drawable
.
class
==
InputOnly
)
{
...
...
@@ -495,17 +495,15 @@ Bool nxagentCreateWindow(WindowPtr pWin)
nxagentWindowPriv
(
pWin
->
nextSib
)
->
siblingAbove
=
nxagentWindow
(
pWin
);
}
#ifdef NXAGENT_SHAPE2
#ifdef SHAPE
nxagentWindowPriv
(
pWin
)
->
boundingShape
=
NULL
;
nxagentWindowPriv
(
pWin
)
->
clipShape
=
NULL
;
#endif
/* SHAPE */
#else
#ifdef SHAPE
nxagentWindowPriv
(
pWin
)
->
boundingShape
=
RegionCreate
(
NULL
,
1
);
nxagentWindowPriv
(
pWin
)
->
clipShape
=
RegionCreate
(
NULL
,
1
);
#endif
/* SHAPE */
#endif
#ifdef SHAPE
#ifdef NXAGENT_SHAPE2
nxagentWindowPriv
(
pWin
)
->
boundingShape
=
NULL
;
nxagentWindowPriv
(
pWin
)
->
clipShape
=
NULL
;
#else
nxagentWindowPriv
(
pWin
)
->
boundingShape
=
RegionCreate
(
NULL
,
1
);
nxagentWindowPriv
(
pWin
)
->
clipShape
=
RegionCreate
(
NULL
,
1
);
#endif
#endif
/* SHAPE */
fbCreateWindow
(
pWin
);
...
...
@@ -604,22 +602,22 @@ Bool nxagentDestroyWindow(WindowPtr pWin)
pWindowPriv
->
siblingAbove
;
}
#ifdef NXAGENT_SHAPE2
#ifdef SHAPE
if
(
pWindowPriv
->
boundingShape
)
{
RegionDestroy
(
pWindowPriv
->
boundingShape
);
}
#ifdef NXAGENT_SHAPE2
#ifdef SHAPE
if
(
pWindowPriv
->
boundingShape
)
{
RegionDestroy
(
pWindowPriv
->
boundingShape
);
}
if
(
pWindowPriv
->
clipShape
)
{
if
(
pWindowPriv
->
clipShape
)
{
RegionDestroy
(
pWindowPriv
->
clipShape
);
}
#endif
#else
RegionDestroy
(
pWindowPriv
->
boundingShape
);
RegionDestroy
(
pWindowPriv
->
clipShape
);
}
#endif
#else
RegionDestroy
(
pWindowPriv
->
boundingShape
);
RegionDestroy
(
pWindowPriv
->
clipShape
);
#endif
if
(
pWindowPriv
->
corruptedRegion
)
{
...
...
@@ -2031,13 +2029,13 @@ void nxagentClipNotify(WindowPtr pWin, int dx, int dy)
nxagentAddConfiguredWindow
(
pWin
,
CWStackingOrder
);
nxagentAddConfiguredWindow
(
pWin
,
CW_Shape
);
#ifndef NXAGENT_SHAPE
#ifdef SHAPE
/*
* nxagentShapeWindow(pWin);
*/
#endif
/* SHAPE */
#endif
/* NXAGENT_SHAPE */
#ifndef NXAGENT_SHAPE
#ifdef SHAPE
/*
* nxagentShapeWindow(pWin);
*/
#endif
/* SHAPE */
#endif
/* NXAGENT_SHAPE */
}
void
nxagentWindowExposures
(
WindowPtr
pWin
,
RegionPtr
pRgn
,
RegionPtr
other_exposed
)
...
...
@@ -2299,12 +2297,12 @@ void nxagentShapeWindow(WindowPtr pWin)
RegionNumRects
(
wBoundingShape
(
pWin
)));
#endif
#ifdef NXAGENT_SHAPE2
#ifdef NXAGENT_SHAPE2
if
(
!
nxagentWindowPriv
(
pWin
)
->
boundingShape
)
{
nxagentWindowPriv
(
pWin
)
->
boundingShape
=
RegionCreate
(
NULL
,
1
);
}
#endif
#endif
RegionCopy
(
nxagentWindowPriv
(
pWin
)
->
boundingShape
,
wBoundingShape
(
pWin
));
...
...
@@ -2321,10 +2319,10 @@ void nxagentShapeWindow(WindowPtr pWin)
XUnionRectWithRegion
(
&
rect
,
reg
,
reg
);
}
#ifndef NXAGENT_SHAPE
#ifndef NXAGENT_SHAPE
XShapeCombineRegion
(
nxagentDisplay
,
nxagentWindow
(
pWin
),
ShapeBounding
,
0
,
0
,
reg
,
ShapeSet
);
#endif
#endif
XDestroyRegion
(
reg
);
}
...
...
@@ -2336,11 +2334,10 @@ void nxagentShapeWindow(WindowPtr pWin)
RegionEmpty
(
nxagentWindowPriv
(
pWin
)
->
boundingShape
);
#ifndef NXAGENT_SHAPE
#ifndef NXAGENT_SHAPE
XShapeCombineMask
(
nxagentDisplay
,
nxagentWindow
(
pWin
),
ShapeBounding
,
0
,
0
,
None
,
ShapeSet
);
#endif
#endif
}
}
...
...
@@ -2357,12 +2354,12 @@ void nxagentShapeWindow(WindowPtr pWin)
RegionNumRects
(
wClipShape
(
pWin
)));
#endif
#ifdef NXAGENT_SHAPE2
#ifdef NXAGENT_SHAPE2
if
(
!
nxagentWindowPriv
(
pWin
)
->
clipShape
)
{
nxagentWindowPriv
(
pWin
)
->
clipShape
=
RegionCreate
(
NULL
,
1
);
}
#endif
#endif
RegionCopy
(
nxagentWindowPriv
(
pWin
)
->
clipShape
,
wClipShape
(
pWin
));
...
...
@@ -2379,10 +2376,10 @@ void nxagentShapeWindow(WindowPtr pWin)
XUnionRectWithRegion
(
&
rect
,
reg
,
reg
);
}
#ifndef NXAGENT_SHAPE
#ifndef NXAGENT_SHAPE
XShapeCombineRegion
(
nxagentDisplay
,
nxagentWindow
(
pWin
),
ShapeClip
,
0
,
0
,
reg
,
ShapeSet
);
#endif
#endif
XDestroyRegion
(
reg
);
}
...
...
@@ -2394,10 +2391,10 @@ void nxagentShapeWindow(WindowPtr pWin)
RegionEmpty
(
nxagentWindowPriv
(
pWin
)
->
clipShape
);
#ifndef NXAGENT_SHAPE
#ifndef NXAGENT_SHAPE
XShapeCombineMask
(
nxagentDisplay
,
nxagentWindow
(
pWin
),
ShapeClip
,
0
,
0
,
None
,
ShapeSet
);
#endif
#endif
}
}
}
...
...
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