wmmoonclock: Use unsigned char in mask bitmap to avoid overflow warnings.
This commit is contained in:
parent
49b3e6a9f3
commit
b9cdeb56df
|
@ -180,9 +180,9 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
initXwindow(argc, argv);
|
initXwindow(argc, argv);
|
||||||
if ((DisplayDepth <= 8)||UseLowColorPixmap)
|
if ((DisplayDepth <= 8)||UseLowColorPixmap)
|
||||||
openXwindow(argc, argv, wmMoonClock_masterLow, wmMoonClock_mask_bits, wmMoonClock_mask_width, wmMoonClock_mask_height, BackColor, LabelColor, DataColor);
|
openXwindow(argc, argv, wmMoonClock_masterLow, (char *)wmMoonClock_mask_bits, wmMoonClock_mask_width, wmMoonClock_mask_height, BackColor, LabelColor, DataColor);
|
||||||
else
|
else
|
||||||
openXwindow(argc, argv, wmMoonClock_master, wmMoonClock_mask_bits, wmMoonClock_mask_width, wmMoonClock_mask_height, BackColor, LabelColor, DataColor);
|
openXwindow(argc, argv, wmMoonClock_master, (char *)wmMoonClock_mask_bits, wmMoonClock_mask_width, wmMoonClock_mask_height, BackColor, LabelColor, DataColor);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#define wmMoonClock_mask_width 64
|
#define wmMoonClock_mask_width 64
|
||||||
#define wmMoonClock_mask_height 64
|
#define wmMoonClock_mask_height 64
|
||||||
static char wmMoonClock_mask_bits[] = {
|
static unsigned char wmMoonClock_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,0xf0,0xff,0xff,0xff,0xff,0xff,0xff,0x0f,0xf0,0xff,0xff,0xff,0xff,
|
0x00,0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0xff,0x0f,0xf0,0xff,0xff,0xff,0xff,
|
||||||
|
|
Loading…
Reference in a new issue