projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d42f457
)
window: fix check of cursor image load result
author
Rafal Mielniczuk
<rafal.mielniczuk2@gmail.com>
Tue, 8 May 2012 20:10:44 +0000
(22:10 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 8 May 2012 20:22:31 +0000
(16:22 -0400)
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
12a98cb
..
2c59b23
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-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];