| t@@ -273,9 +273,9 @@ enum
};
char *menu3str[] = {
- [Mimage] "write image",
- [Mmask] "write mask",
- [Mexit] "exit",
+ "write image",
+ "write mask",
+ "exit",
0,
};
t@@ -469,7 +469,7 @@ main(int argc, char **argv)
if(Bgetheader(&in, &h) < 0)
sysfatal("reading header: %r");
- initdraw(nil, nil, "ico");
+ initdraw(0, nil, "ico");
background = allocimage(display, Rect(0, 0, 1, 1), screen->chan, 1, (128<<24)|(128<<16)|(128<<8)|0xFF);
einit(Emouse|Ekeyboard); |
| t@@ -151,12 +151,12 @@ struct Pix {
};
static Pix pix[] = {
- { '1', 1, Bgetdecimalbit, 1, CY, 1, nil }, /* portable bitmap */
+ { '1', 1, Bgetdecimalbit, 1, CY, 1, 0 }, /* portable bitmap */
{ '4', 1, Bgetbit, 1, CY, 1, Bflushbit }, /* raw portable bitmap */
- { '2', 0, Bgetint, 1, CY, 0, nil }, /* portable greymap */
- { '5', 0, Bgetc, 1, CY, 0, nil }, /* raw portable greymap */
- { '3', 0, Bgetint, 3, CRGB, 0, nil }, /* portable pixmap */
- { '6', 0, Bgetc, 3, CRGB, 0, nil }, /* raw portable pixmap */
+ { '2', 0, Bgetint, 1, CY, 0, 0 }, /* portable greymap */
+ { '5', 0, Bgetc, 1, CY, 0, 0 }, /* raw portable greymap */
+ { '3', 0, Bgetint, 3, CRGB, 0, 0 }, /* portable pixmap */
+ { '6', 0, Bgetc, 3, CRGB, 0, 0 }, /* raw portable pixmap */
{ 0 },
};
|