wmtime: Fix overflow warning; mask bitmap should be unsigned.
This commit is contained in:
parent
befeff0c0c
commit
eb93ccf24d
|
@ -1,6 +1,6 @@
|
||||||
#define wmtime_mask_width 128
|
#define wmtime_mask_width 128
|
||||||
#define wmtime_mask_height 64
|
#define wmtime_mask_height 64
|
||||||
static char wmtime_mask_bits[] = {
|
static unsigned char wmtime_mask_bits[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
|
|
@ -350,7 +350,7 @@ void wmtime_routine(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
draw_window:
|
draw_window:
|
||||||
openXwindow(argc, argv, wmtime_master_xpm, wmtime_mask_bits, 128, 64);
|
openXwindow(argc, argv, wmtime_master_xpm, (char*)wmtime_mask_bits, 128, 64);
|
||||||
|
|
||||||
/* Mask out the right parts of the clock */
|
/* Mask out the right parts of the clock */
|
||||||
copyXPMArea(0, 0, 128, 64, 0, 98); /* Draw the borders */
|
copyXPMArea(0, 0, 128, 64, 0, 98); /* Draw the borders */
|
||||||
|
|
Loading…
Reference in a new issue