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
45f6e41c
Commit
45f6e41c
authored
Sep 05, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render.c: make nxagentPrintFormat a NOP in normal mode
This way we can remove lots of #ifdef DEBUGs
parent
7d8323a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
49 deletions
+2
-49
Render.c
nx-X11/programs/Xserver/hw/nxagent/Render.c
+2
-49
No files found.
nx-X11/programs/Xserver/hw/nxagent/Render.c
View file @
45f6e41c
...
...
@@ -114,12 +114,8 @@ XRenderPictFormat *nxagentMatchingFormats(PictFormatPtr pForm);
BoxPtr
nxagentGlyphsExtents
;
BoxPtr
nxagentTrapezoidExtents
;
#ifdef DEBUG
static
void
nxagentPrintFormat
(
XRenderPictFormat
*
pFormat
);
#endif
/*
* From NXglyph.c.
*/
...
...
@@ -730,12 +726,7 @@ int nxagentCreatePicture(PicturePtr pPicture, Mask mask)
if
(
pPicture
->
pFormat
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
pPicture
->
pFormat
);
#ifdef DEBUG
nxagentPrintFormat
(
pForm
);
#endif
}
if
(
pForm
==
NULL
)
...
...
@@ -1402,13 +1393,8 @@ void nxagentGlyphs(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
if
(
maskFormat
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
maskFormat
);
#ifdef DEBUG
nxagentPrintFormat
(
pForm
);
#endif
if
(
pForm
==
NULL
)
{
return
;
...
...
@@ -1888,13 +1874,8 @@ void nxagentTrapezoids(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
if
(
maskFormat
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
maskFormat
);
#ifdef DEBUG
nxagentPrintFormat
(
pForm
);
#endif
if
(
pForm
==
NULL
)
{
return
;
...
...
@@ -2048,13 +2029,8 @@ void nxagentTriangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
if
(
maskFormat
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
maskFormat
);
#ifdef DEBUG
nxagentPrintFormat
(
pForm
);
#endif
if
(
pForm
==
NULL
)
{
return
;
...
...
@@ -2126,13 +2102,8 @@ void nxagentTriStrip(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
if
(
maskFormat
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
maskFormat
);
#ifdef DEBUG
nxagentPrintFormat
(
pForm
);
#endif
if
(
pForm
==
NULL
)
{
return
;
...
...
@@ -2204,13 +2175,8 @@ void nxagentTriFan(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
if
(
maskFormat
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
maskFormat
);
#ifdef DEBUG
nxagentPrintFormat
(
pForm
);
#endif
if
(
pForm
==
NULL
)
{
return
;
...
...
@@ -2342,13 +2308,8 @@ void nxagentCreateGlyphSet(GlyphSetPtr pGly)
if
(
pGly
->
format
!=
NULL
)
{
pForm
=
nxagentMatchingFormats
(
pGly
->
format
);
#ifdef DEBUG
nxagentPrintFormat
(
pForm
);
#endif
if
(
pForm
==
NULL
)
{
return
;
...
...
@@ -2622,14 +2583,12 @@ Bool nxagentPictureInit(ScreenPtr pScreen, PictFormatPtr formats, int nformats)
return
TRUE
;
}
#ifdef DEBUG
static
void
nxagentPrintFormat
(
XRenderPictFormat
*
pFormat
)
{
#ifdef DEBUG
if
(
pFormat
==
NULL
)
{
fprintf
(
stderr
,
"nxagentPrintFormat: WARNING! null pointer passed to function.
\n
"
);
return
;
}
...
...
@@ -2655,9 +2614,8 @@ static void nxagentPrintFormat(XRenderPictFormat *pFormat)
pFormat
->
direct
.
blueMask
,
pFormat
->
direct
.
alpha
,
pFormat
->
direct
.
alphaMask
);
}
#endif
}
Bool
nxagentFillGlyphSet
(
GlyphSetPtr
pGly
)
{
...
...
@@ -2848,12 +2806,7 @@ void nxagentReconnectPicture(void * p0, XID x1, void *p2)
if
(
pPicture
->
pFormat
)
{
pForm
=
nxagentMatchingFormats
(
pPicture
->
pFormat
);
#ifdef DEBUG
nxagentPrintFormat
(
pForm
);
#endif
}
if
(
!
pForm
&&
pPicture
->
pSourcePict
)
...
...
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