stupid sun
This commit is contained in:
parent
ecdecae370
commit
840bb96866
3 changed files with 14 additions and 11 deletions
|
|
@ -273,9 +273,9 @@ enum
|
||||||
};
|
};
|
||||||
|
|
||||||
char *menu3str[] = {
|
char *menu3str[] = {
|
||||||
[Mimage] "write image",
|
"write image",
|
||||||
[Mmask] "write mask",
|
"write mask",
|
||||||
[Mexit] "exit",
|
"exit",
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -469,7 +469,7 @@ main(int argc, char **argv)
|
||||||
if(Bgetheader(&in, &h) < 0)
|
if(Bgetheader(&in, &h) < 0)
|
||||||
sysfatal("reading header: %r");
|
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);
|
background = allocimage(display, Rect(0, 0, 1, 1), screen->chan, 1, (128<<24)|(128<<16)|(128<<8)|0xFF);
|
||||||
|
|
||||||
einit(Emouse|Ekeyboard);
|
einit(Emouse|Ekeyboard);
|
||||||
|
|
|
||||||
|
|
@ -151,12 +151,12 @@ struct Pix {
|
||||||
};
|
};
|
||||||
|
|
||||||
static Pix 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 */
|
{ '4', 1, Bgetbit, 1, CY, 1, Bflushbit }, /* raw portable bitmap */
|
||||||
{ '2', 0, Bgetint, 1, CY, 0, nil }, /* portable greymap */
|
{ '2', 0, Bgetint, 1, CY, 0, 0 }, /* portable greymap */
|
||||||
{ '5', 0, Bgetc, 1, CY, 0, nil }, /* raw portable greymap */
|
{ '5', 0, Bgetc, 1, CY, 0, 0 }, /* raw portable greymap */
|
||||||
{ '3', 0, Bgetint, 3, CRGB, 0, nil }, /* portable pixmap */
|
{ '3', 0, Bgetint, 3, CRGB, 0, 0 }, /* portable pixmap */
|
||||||
{ '6', 0, Bgetc, 3, CRGB, 0, nil }, /* raw portable pixmap */
|
{ '6', 0, Bgetc, 3, CRGB, 0, 0 }, /* raw portable pixmap */
|
||||||
{ 0 },
|
{ 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,11 @@ startgif0(Biobuf *fd, ulong chan, Rectangle r, int depth, int loopcount)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for(i=0; i<nelem(tbl); i++)
|
for(i=0; i<nelem(tbl); i++){
|
||||||
tbl[i] = (Entry){i, -1, i, nil};
|
tbl[i].index = i;
|
||||||
|
tbl[i].prefix = -1;
|
||||||
|
tbl[i].exten = i;
|
||||||
|
}
|
||||||
|
|
||||||
switch(chan){
|
switch(chan){
|
||||||
case GREY1:
|
case GREY1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue