From 1873e50a14a4097f2c84e8cb3991f55422080824 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sat, 8 Jun 2024 18:05:57 +0200 Subject: Render.c: some simplifications --- nx-X11/programs/Xserver/hw/nxagent/Render.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nx-X11') 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; } -- cgit v1.2.3