compositor: Report an error if we cannot the load the pointer image files

This commit is contained in:
Rob Bradford 2011-10-25 13:43:44 +01:00
parent d354711fc7
commit 1d72447d9b
1 changed files with 4 additions and 0 deletions

View File

@ -552,6 +552,10 @@ create_pointer_images(struct wlsc_compositor *ec)
create_sprite_from_png(ec,
pointer_images[i].filename,
SPRITE_USE_CURSOR);
if (!ec->pointer_sprites[i]) {
fprintf(stderr, "Error loading pointer image: %s\n",
pointer_images[i].filename);
}
}
}