stupid sun

This commit is contained in:
rsc 2004-04-25 21:36:03 +00:00
parent ecdecae370
commit 840bb96866
3 changed files with 14 additions and 11 deletions

View file

@ -273,9 +273,9 @@ enum
};
char *menu3str[] = {
[Mimage] "write image",
[Mmask] "write mask",
[Mexit] "exit",
"write image",
"write mask",
"exit",
0,
};
@ -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);

View file

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

View file

@ -52,8 +52,11 @@ startgif0(Biobuf *fd, ulong chan, Rectangle r, int depth, int loopcount)
{
int i;
for(i=0; i<nelem(tbl); i++)
tbl[i] = (Entry){i, -1, i, nil};
for(i=0; i<nelem(tbl); i++){
tbl[i].index = i;
tbl[i].prefix = -1;
tbl[i].exten = i;
}
switch(chan){
case GREY1: