mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 14:48:05 +02:00
window: fix check of cursor image load result
This commit is contained in:
parent
d42f457b66
commit
87e4c9354e
1 changed files with 2 additions and 2 deletions
|
|
@ -676,7 +676,7 @@ create_cursors(struct display *display)
|
|||
|
||||
for (i = 0; i < count; i++) {
|
||||
images[i] = XcursorLibraryLoadImages(cursors[i], NULL, 32);
|
||||
if (!images) {
|
||||
if (!images[i]) {
|
||||
fprintf(stderr, "Error loading cursor: %s\n",
|
||||
cursors[i]);
|
||||
continue;
|
||||
|
|
@ -687,7 +687,7 @@ create_cursors(struct display *display)
|
|||
display->cursor_shm_pool = shm_pool_create(display, pool_size);
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
if (!images)
|
||||
if (!images[i])
|
||||
continue;
|
||||
|
||||
cursor = &display->cursors[i];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue