diff options
Diffstat (limited to 'src/FbTk/FbPixmap.cc')
-rw-r--r-- | src/FbTk/FbPixmap.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/FbPixmap.cc b/src/FbTk/FbPixmap.cc index ea1d1c9..3aebd62 100644 --- a/src/FbTk/FbPixmap.cc +++ b/src/FbTk/FbPixmap.cc | |||
@@ -359,7 +359,7 @@ void FbPixmap::rootwinPropertyNotify(int screen_num, Atom atom) { | |||
359 | Atom real_type; | 359 | Atom real_type; |
360 | int real_format; | 360 | int real_format; |
361 | unsigned long items_read, items_left; | 361 | unsigned long items_read, items_left; |
362 | unsigned char *data; | 362 | unsigned long *data; |
363 | 363 | ||
364 | if (XGetWindowProperty(display(), | 364 | if (XGetWindowProperty(display(), |
365 | RootWindow(display(), screen_num), | 365 | RootWindow(display(), screen_num), |
@@ -368,7 +368,7 @@ void FbPixmap::rootwinPropertyNotify(int screen_num, Atom atom) { | |||
368 | False, XA_PIXMAP, | 368 | False, XA_PIXMAP, |
369 | &real_type, &real_format, | 369 | &real_type, &real_format, |
370 | &items_read, &items_left, | 370 | &items_read, &items_left, |
371 | &data) == Success) { | 371 | (unsigned char **) &data) == Success) { |
372 | if (real_format == 32 && items_read == 1) { | 372 | if (real_format == 32 && items_read == 1) { |
373 | root_pm = (Pixmap) (*data); | 373 | root_pm = (Pixmap) (*data); |
374 | } | 374 | } |
@@ -410,7 +410,7 @@ Pixmap FbPixmap::getRootPixmap(int screen_num, bool force_update) { | |||
410 | Atom real_type; | 410 | Atom real_type; |
411 | int real_format; | 411 | int real_format; |
412 | unsigned long items_read, items_left; | 412 | unsigned long items_read, items_left; |
413 | unsigned char *data; | 413 | unsigned long *data; |
414 | 414 | ||
415 | unsigned int prop = 0; | 415 | unsigned int prop = 0; |
416 | 416 | ||
@@ -435,7 +435,7 @@ Pixmap FbPixmap::getRootPixmap(int screen_num, bool force_update) { | |||
435 | False, XA_PIXMAP, | 435 | False, XA_PIXMAP, |
436 | &real_type, &real_format, | 436 | &real_type, &real_format, |
437 | &items_read, &items_left, | 437 | &items_read, &items_left, |
438 | &data) == Success) { | 438 | (unsigned char **) &data) == Success) { |
439 | if (real_format == 32 && items_read == 1) { | 439 | if (real_format == 32 && items_read == 1) { |
440 | if (print_error && strcmp(root_prop_ids[prop], "_XSETROOT_ID") == 0) { | 440 | if (print_error && strcmp(root_prop_ids[prop], "_XSETROOT_ID") == 0) { |
441 | cerr<<error_message; | 441 | cerr<<error_message; |