commit 1feddd22128ccd1d8d4b1180cdd7f81e93ffa4b1 parent 336dd5ea67f7b4b351efb4de35b4ea0240742c62 Author: ukai <ukai> Date: Thu, 18 Jul 2002 06:49:39 +0000 add w3mimg protocol in comment Diffstat:
M | w3mimgdisplay.c | | | 22 | ++++++++++++++++++++++ |
1 file changed, 22 insertions(+), 0 deletions(-)
diff --git a/w3mimgdisplay.c b/w3mimgdisplay.c @@ -57,6 +57,28 @@ main(int argc, char **argv) if (buf[len - 1] == '\r') buf[--len] = '\0'; } + /* + * w3mimg protocol + * 0 1 2 .... + * +--+--+--+--+ ...... +--+--+ + * |op|; |args |\n| + * +--+--+--+--+ .......+--+--+ + * + * args is separeted by ';' + * op args + * 0; params draw image + * 1; params redraw image + * 2; -none- clear image + * 3; -none- sync drawing + * 4; -none- nop, sync communication + * response '\n' + * 5; path get size of image, + * response "<width> <height>\n" + * + * params + * <n>;<x>;<y>;<w>;<h>;<sx>;<sy>;<sw>;<sh>;<path> + * + */ switch (buf[0]) { case '0': DrawImage(&buf[2], 0);