aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Render.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2024-06-08 18:05:57 +0200
committerUlrich Sibiller <uli42@gmx.de>2024-06-08 18:05:57 +0200
commit1873e50a14a4097f2c84e8cb3991f55422080824 (patch)
tree6c09d79ca74f2f1be3b0c37f4698ab54bf053ddb /nx-X11/programs/Xserver/hw/nxagent/Render.c
parent5f7c8e73b3eaceb7651957c2701e055286d8aadd (diff)
downloadnx-libs-1873e50a14a4097f2c84e8cb3991f55422080824.tar.gz
nx-libs-1873e50a14a4097f2c84e8cb3991f55422080824.tar.bz2
nx-libs-1873e50a14a4097f2c84e8cb3991f55422080824.zip
Render.c: some simplifications
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Render.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Render.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/Render.c
index f6b91a76d..5113a9798 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Render.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c
@@ -553,14 +553,14 @@ void nxagentRenderRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
int nxagentCreatePicture(PicturePtr pPicture, Mask mask)
{
XRenderPictureAttributes attributes;
- unsigned long valuemask=0;
+ unsigned long valuemask = 0;
#ifdef DEBUG
fprintf(stderr, "%s: Function called with picture at [%p] and mask [%d].\n", __func__,
(void *) pPicture, mask);
#endif
- if (pPicture == NULL)
+ if (!pPicture)
{
return 0;
}
@@ -611,15 +611,15 @@ int nxagentCreatePicture(PicturePtr pPicture, Mask mask)
fprintf(stderr, "%s: picture format [%p]\n", __func__, (void *)pPicture->pFormat);
#endif
- if (pPicture -> pFormat != NULL)
+ if (pPicture -> pFormat)
{
pForm = nxagentMatchingFormats(pPicture -> pFormat);
nxagentPrintFormat(pForm);
}
- if (pForm == NULL)
+ if (!pForm)
{
- fprintf(stderr, "%s: WARNING! The requested format was not found.\n", __func__);
+ fprintf(stderr, "%s: WARNING! The requested format was not found - not creating picture.\n", __func__);
return 0;
}