wmtime: Fix overflow warning; mask bitmap should be unsigned.

This commit is contained in:
Doug Torrance 2015-05-25 17:21:27 -05:00 committed by Carlos R. Mafra
parent befeff0c0c
commit eb93ccf24d
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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 */