summaryrefslogtreecommitdiff
path: root/lib/libXcursor/src/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libXcursor/src/cursor.c')
-rw-r--r--lib/libXcursor/src/cursor.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libXcursor/src/cursor.c b/lib/libXcursor/src/cursor.c
index 2e4d82193..905223c87 100644
--- a/lib/libXcursor/src/cursor.c
+++ b/lib/libXcursor/src/cursor.c
@@ -1,4 +1,5 @@
/*
+ * Copyright © 2024 Thomas E. Dickey
* Copyright © 2002 Keith Packard
*
* Permission to use, copy, modify, distribute, and sell this software and its
@@ -742,9 +743,11 @@ Cursor
XcursorFilenameLoadCursor (Display *dpy, const char *file)
{
int size = XcursorGetDefaultSize (dpy);
- XcursorImages *images = XcursorFilenameLoadImages (file, size);
+ XcursorBool resize = XcursorGetResizable (dpy);
+ XcursorImages *images;
Cursor cursor;
+ images = _XcursorFilenameLoadImages (file, size, resize);
if (!images)
return None;
cursor = XcursorImagesLoadCursor (dpy, images);
@@ -756,9 +759,11 @@ XcursorCursors *
XcursorFilenameLoadCursors (Display *dpy, const char *file)
{
int size = XcursorGetDefaultSize (dpy);
- XcursorImages *images = XcursorFilenameLoadImages (file, size);
+ XcursorBool resize = XcursorGetResizable (dpy);
+ XcursorImages *images;
XcursorCursors *cursors;
+ images = _XcursorFilenameLoadImages (file, size, resize);
if (!images)
return NULL;
cursors = XcursorImagesLoadCursors (dpy, images);