X-Git-Url: https://git.ao2.it/xicursorset.git/blobdiff_plain/e88fc7913706d39f0fcdb5e2ca4cf754944b3e35..b2cd5ca396538aaefeddb4c33a96e984983aaa6a:/xicursorset.c?ds=inline diff --git a/xicursorset.c b/xicursorset.c index e66644b..d45ec5e 100644 --- a/xicursorset.c +++ b/xicursorset.c @@ -72,16 +72,17 @@ int main(int argc, char *argv[]) } - if (argc == 4) + if (argc == 4) { theme = argv[3]; - else + } else { theme = XcursorGetTheme(dpy); if (theme == NULL) { fprintf(stderr, "Can't get cursor theme.\n"); return EXIT_FAILURE; } + } - image = XcursorShapeLoadImage(shape, theme, size); + image = XcursorShapeLoadImage((unsigned int)shape, theme, size); if (image == NULL) { fprintf(stderr, "Can't get cursor image, check or .\n"); return EXIT_FAILURE;