mirror of
https://gitlab.freedesktop.org/xorg/lib/libxcursor.git
synced 2025-12-20 07:00:18 +01:00
more cppcheck-style fixes
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
This commit is contained in:
parent
f807ac9c78
commit
801925839d
2 changed files with 12 additions and 14 deletions
|
|
@ -91,6 +91,7 @@ XcursorAnimateNext (XcursorAnimate *animate)
|
|||
return cursor;
|
||||
}
|
||||
|
||||
#if RENDER_MAJOR > 0 || RENDER_MINOR >= 5
|
||||
static int
|
||||
nativeByteOrder (void)
|
||||
{
|
||||
|
|
@ -98,6 +99,7 @@ nativeByteOrder (void)
|
|||
|
||||
return (*((char *) &x) == 1) ? LSBFirst : MSBFirst;
|
||||
}
|
||||
#endif
|
||||
|
||||
static XcursorUInt
|
||||
_XcursorPixelBrightness (XcursorPixel p)
|
||||
|
|
|
|||
|
|
@ -315,9 +315,7 @@ XcursorLibraryLoadImage (const char *file, const char *theme, int size)
|
|||
f = XcursorScanTheme (theme, file);
|
||||
if (!f)
|
||||
f = XcursorScanTheme ("default", file);
|
||||
if (f == XCURSOR_SCAN_CORE)
|
||||
return NULL;
|
||||
if (f)
|
||||
if (f != NULL && f != XCURSOR_SCAN_CORE)
|
||||
{
|
||||
image = XcursorFileLoadImage (f, size);
|
||||
fclose (f);
|
||||
|
|
@ -338,9 +336,7 @@ XcursorLibraryLoadImages (const char *file, const char *theme, int size)
|
|||
f = XcursorScanTheme (theme, file);
|
||||
if (!f)
|
||||
f = XcursorScanTheme ("default", file);
|
||||
if (f == XCURSOR_SCAN_CORE)
|
||||
return NULL;
|
||||
if (f)
|
||||
if (f != NULL && f != XCURSOR_SCAN_CORE)
|
||||
{
|
||||
images = XcursorFileLoadImages (f, size);
|
||||
if (images)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue