return EXIT_FAILURE;
}
-
- 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 <shape> or <theme>.\n");
return EXIT_FAILURE;