diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-04-01 04:57:11 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-04-01 04:57:11 +0200 |
commit | 0989c2530d03de81c7d340e2f173786590ae967b (patch) | |
tree | 8a195b4e59670a76ccb3f2a885130708c420c65e /sys/src/cmd/page.c | |
parent | ff7d9ab52561605053e69dfa3d7e842318444c03 (diff) |
microsoft ico format conversion support
Diffstat (limited to 'sys/src/cmd/page.c')
-rw-r--r-- | sys/src/cmd/page.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/src/cmd/page.c b/sys/src/cmd/page.c index fe85c243b..61e5527ec 100644 --- a/sys/src/cmd/page.c +++ b/sys/src/cmd/page.c @@ -290,7 +290,10 @@ popenimg(Page *p) seek(fd, 0, 0); if(p->data){ p->ext = p->data; - snprint(nam, sizeof(nam), "%s -t9", p->ext); + if(strcmp(p->ext, "ico") == 0) + snprint(nam, sizeof(nam), "%s -c", p->ext); + else + snprint(nam, sizeof(nam), "%s -t9", p->ext); pipeline(fd, "%s", nam); } @@ -674,6 +677,7 @@ popenfile(Page *p) "image/png", popenimg, "png", "image/ppm", popenimg, "ppm", "image/bmp", popenimg, "bmp", + "image/x-icon", popenimg, "ico", "image/p9bit", popenimg, nil, }; |