Index: work/remote/animator/cmds =================================================================== --- work/remote/animator/cmds (revision 5133) +++ work/remote/animator/cmds (revision 5134) @@ -15,3 +15,4 @@ poly umask exit +brddim Index: work/remote/animator/hid_anim.c =================================================================== --- work/remote/animator/hid_anim.c (revision 5133) +++ work/remote/animator/hid_anim.c (revision 5134) @@ -62,6 +62,19 @@ draw_rline(s_anim_out, x1, y1, x2, y2, gc->width, gc->cap == 'r'); } +static void cmd_brddim(proto_node_t *args) +{ + proto_node_t *ch1 = child1(args); + double w, h; + + w = adbl(ch1, BADVAL); + h = adbl(next(ch1), BADVAL); + if ((w == BADVAL) || (h == BADVAL)) + abort(); + P_net_printf(s_anim_out, "viewport %f %f - %f %f\nframe\n", -20.0, -20.0, w+20.0, h+20.0); +} + + static void cmd_ready(proto_node_t *args) { send_begin(&pctx, "ready"); @@ -95,6 +108,7 @@ case cmds_linwid: cmd_linwid(pctx.targ); break; case cmds_setxor: cmd_setxor(pctx.targ); break; case cmds_line: cmd_line(pctx.targ); break; + case cmds_brddim: cmd_brddim(pctx.targ); break; case cmds_exit: exit(0); /* ignore */