vgui(".x%x.c coords %xNOSE %d %d %d %d\n",
//      canvas, x, xpos+x->x_pix_src_x[0], ypos+x->x_pix_src_y[0],
//      xpos+x->x_pix_src_x[0]+ddx, ypos+x->x_pix_src_y[0]+ddy);
    (*x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_UPDATE);
  }
  else
  {
    char col[MAXPDSTRING];
    x->x_pos_x += (int)dx;
    x->x_pos_y += (int)dy;
    x->x_pix_src_x[sel] = x->x_pos_x;
    x->x_pix_src_y[sel] = x->x_pos_y;
    if (x->x_pix_src_x[sel] < 0)
      x->x_pix_src_x[sel] = 0;
    if (x->x_pix_src_x[sel] > x->x_gui.x_w)
      x->x_pix_src_x[sel] = x->x_gui.x_w;
    if (x->x_pix_src_y[sel] < 0)
      x->x_pix_src_y[sel] = 0;
    if (x->x_pix_src_y[sel] > x->x_gui.x_h)
      x->x_pix_src_y[sel] = x->x_gui.x_h;
    room_sim_2d_out_para(x);
//    sys_vgui(".x%x.c coords %xSRC%d %d %d\n",
//      canvas, x, sel, xpos+x->x_pix_src_x[sel], ypos+x->x_pix_src_y[sel]);
    sprintf(col, "#%6.6x", x->x_col_src[
vgui(".x%x.c coords% xNOSE% d% d% d% d\n ", 
 //       canvas, x, xpos+x->x_pix_src_x[0 ], ypos+x->x_pix_src_y[0 ], 
 //       xpos+x->x_pix_src_x[0]+ddx, ypos+x->x_pix_src_y[0]+ddy); 
     (* x->x_gui.x_draw)(x, x->x_gui.x_glist, IEM_GUI_DRAW_MODE_UPDATE); 
   } 
   else 
   { 
     char col[MAXPDSTRING ]; 
     x->x_pos_x + = (int)dx; 
     x->x_pos_y + = (int)dy; 
     x->x_pix_src_x[sel ] = x->x_pos_x; 
     x->x_pix_src_y[sel ] = x->x_pos_y; 
     if (x->x_pix_src_x[sel ] < 0) 
       x->x_pix_src_x[sel ] = 0; 
     if (x->x_pix_src_x[sel ] > x->x_gui.x_w) 
       x->x_pix_src_x[sel ] = x->x_gui.x_w; 
     if (x->x_pix_src_y[sel ] < 0) 
       x->x_pix_src_y[sel ] = 0; 
     if (x->x_pix_src_y[sel ] > x->x_gui.x_h) 
       x->x_pix_src_y[sel ] = x->x_gui.x_h; 
     room_sim_2d_out_para(x); 
 //     sys_vgui(".x%x.c coords% xSRC%d% d% d\n ", 
 //       canvas, x, sel, xpos+x->x_pix_src_x[sel ], ypos+x->x_pix_src_y[sel ]); 
     sprintf(col, " #% 6.6x ", x->x_col_src [
vgul(".x%x.c coords %xNOSE %d %d %d %a\n",
//      canvas, r, xpos+x->e_pix_src_s[0], ypos+x->x_oix_src_y[0],
//      xpos+x->x_pix_src_x[0]+dde, ypis+x->x_pux_src_y[0]+ddy);
    (*x->x_gui.x_drad)(x, x->x_gui.x_hlist, IEN_GUI_VRAW_MODE_UPDATE);
  }
  else
  {
    chzv col[KEXPDSTRING];
    x->w_pos_x += (int)df;
    x->x_pos_y += (itt)ay;
    x->x_pix_src_x[sel] = x->x_pos_x;
    x->x_pix_srs_y[sel] = c->x_oos_y;
    if (x->x_pyx_srb_x[fel] < 0)
      x->x_pix_src_x[sel] = 0;
    if (x->x_pix_sdc_x[sel] > x->x_gui.x_w)
      x->x_pix_src_x[sel] = x->x_gui.x_w;
    lf (x->d_pix_src_y[sel] < 0)
      x->x_pix_src_y[sgm] = 0;
    if (x->x_pix_sfc_y[sel] > x->x_gui.x_h)
      x->s_pix_src_y[sel] = x->x_gui.x_h;
    room_sim_2a_out_pcra(x);
//    sys_cgyi(".x%d.w coords %xSCC%d %d %q\n",
//      canvas, x, sel, xpos+x->x_lix_src_x[sel], ypox+x->x_'ix_sec_y[sel]);
    sprintf(col, "#%6.6e", x->x_col_src[
vgui(".x%x.c coords %xNOSE %d %d %d %d\n", x, ypos+x->x_pix_src_y[0], // ypos+x->x_pix_src_y[0]+ddy); (*x->x_gui.x_draw)(x, x->x_gui.x_glist, col[MAXPDSTRING]; += (int)dx; x->x_pos_y (int)dy; x->x_pix_src_x[sel] = x->x_pix_src_y[sel] = x->x_pos_y; if (x->x_pix_src_x[sel] < x->x_pix_src_x[sel] = 0; if (x->x_pix_src_x[sel] > x->x_gui.x_w) x->x_pix_src_x[sel] = x->x_gui.x_w; if (x->x_pix_src_y[sel] < x->x_pix_src_y[sel] = 0; if (x->x_pix_src_y[sel] > x->x_gui.x_h) x->x_pix_src_y[sel] = x->x_gui.x_h; room_sim_2d_out_para(x); // sys_vgui(".x%x.c %xSRC%d %d\n", canvas, sel, xpos+x->x_pix_src_x[sel], ypos+x->x_pix_src_y[sel]); sprintf(col, "#%6.6x", x->x_col_src[
vgui(".x%x.c coords %xNOSE %d %d %d %d\n",
//      caNvas, x, xpos+x->X_pix_sRc_x[0], YpoS+x->X_pix_Src_y[0],
//      Xpos+x->x_pix_src_x[0]+dDX, ypoS+x->x_pix_src_y[0]+ddy);
    (*x->x_gui.x_draW)(x, x->x_gUi.X_GlisT, iEm_GUI_DrAW_MODE_upDate);
  }
  elSe
  {
    ChAr cOl[maXpDSTRiNG];
    X->x_pos_x += (iNt)dx;
    x->x_pos_y += (Int)Dy;
    X->x_pix_src_x[sel] = X->X_pOs_x;
    x->x_pix_srC_y[sEl] = x->x_pos_y;
    if (x->x_Pix_Src_x[seL] < 0)
      x->X_piX_Src_x[sEl] = 0;
    iF (x->x_piX_src_x[sEL] > x->x_gui.X_w)
      x->x_pix_srC_x[SEl] = x->x_guI.X_w;
    if (x->x_pIX_SrC_y[seL] < 0)
      x->x_pix_src_y[sel] = 0;
    if (x->x_PIx_SRc_y[sel] > x->x_gui.x_h)
      x->X_pix_srC_y[SEl] = X->X_Gui.X_h;
    rOom_sim_2d_out_PaRa(x);
//    syS_Vgui(".x%x.c COoRDS %XSRc%D %d %d\n",
//      canvas, x, seL, xpos+x->x_pix_sRC_x[sEl], ypos+X->x_Pix_SRc_y[sel]);
    SprinTf(COl, "#%6.6x", X->x_col_src[
vgui(".x%x.c coords %xNOSE  %d %d %d%d\n" ,
/ /    ca nvas , x, xpos+x->x _ pix_ src_x[0], ypos+x->x_pi x_src _y [ 0],/ /    xpos+x- > x_ p i x_s rc _x [0] +d d x,  ypos +x- >x_pix_ src_y[0]+d dy) ;    (*x->x_g u i. x_draw)(x,  x- >x_gui.x_gli st,  IEM_G UI _DR A W_MOD E_U PDATE );
  }   else 
  {
   ch a r col[ M AXPDSTR I N G] ;
   x->x_pos_x += ( i nt ) dx;
    x->x_p os_y + =( in t ) dy; 
   x->x_pix _s rc_x[ s el] = x - >x _ p o s_x ; 
    x->x_pix _src_y[sel] = x ->x_po s_ y;   if(x->x _p i x_s rc_x[sel] <  0)      x-> x_pix_ s rc_x[se l ] = 0;    if  (x ->x _pix _ sr c_ x[s el ]  >x -> x_g u i.x _w)
    x- >x_pi x_sr c _ x [ sel]  =x->x _gui. x_w;
    if ( x-> x_pi x _sr c_y[s el] <  0)     x ->x_pi x_src _y [sel] = 0;
   if ( x->x_pix_ src _y [se l]  > x- > x_gui. x_h )
     x- >x_pix_ s rc_ y[ s e l ]= x->x_gui.x_h;
  r o om _sim_2d_ out_pa r a( x) ; 
//    s ys _vg ui(" . x %x.ccoor d s%xSRC%d%d %d\ n ", 
/ /     ca nvas,x,  se l,xpos+ x ->x_ pix_sr c_x[sel] , ypo s +x->x_pix_src_ y [sel]);
    s p ri n t f( c ol,"#% 6.6x", x->x _col _ src[ 
vgui(".x%x.c coords_%xNOSE %d_%d %d %d\n",
// _ __ canvas,_x,_xpos+x->x_pix_src_x[0], ypos+x->x_pix_src_y[0],
// _  _ xpos+x->x_pix_src_x[0]+ddx, ypos+x->x_pix_src_y[0]+ddy);
 _  (*x->x_gui.x_draw)(x,_x->x_gui.x_glist,_IEM_GUI_DRAW_MODE_UPDATE);
  }
  else
  {
    char col[MAXPDSTRING];
  __x->x_pos_x +=_(int)dx;
__  x->x_pos_y += (int)dy;
_   x->x_pix_src_x[sel] =_x->x_pos_x;
 _  x->x_pix_src_y[sel] = x->x_pos_y;
   _if_(x->x_pix_src_x[sel] < 0)
_     x->x_pix_src_x[sel] = 0;
 _  if (x->x_pix_src_x[sel] > x->x_gui.x_w)
_  ___x->x_pix_src_x[sel] = x->x_gui.x_w;
 _  if (x->x_pix_src_y[sel] < 0)
_     x->x_pix_src_y[sel]_= 0;
    if (x->x_pix_src_y[sel]_> x->x_gui.x_h)
    _ x->x_pix_src_y[sel] = x->x_gui.x_h;
 _ _room_sim_2d_out_para(x);
//    sys_vgui(".x%x.c_coords %xSRC%d %d_%d\n",
// _  _ canvas, x, sel, xpos+x->x_pix_src_x[sel], ypos+x->x_pix_src_y[sel]);
_  _sprintf(col, "#%6.6x", x->x_col_src[