Difference for crossedit/Edit.c from version 1.5 to 1.6


version 1.5 version 1.6
Line 474
 
Line 474
     if (!self->app->item.wall_map)      if (!self->app->item.wall_map)
  CnvDie(self->shell,"No Wall map");   CnvDie(self->shell,"No Wall map");
   
     if (self->app->item.wall_map->mapx < 16)      if (self->app->item.wall_map->map_object->x < 16)
  CnvDie(self->shell,"Wall Map has wrong width\n");   CnvDie(self->shell,"Wall Map has wrong width\n");
   
     for (i = 0; i < 4; i++)      for (i = 0; i < 4; i++)
Line 493
 
Line 493
     if (!self->app->item.wall_map)      if (!self->app->item.wall_map)
  CnvDie(self->shell,"No Wall map");   CnvDie(self->shell,"No Wall map");
   
     if (self->app->item.wall_map->mapx < 16)      if (self->app->item.wall_map->map_object->x < 16)
  CnvDie(self->shell,"Wall Map has wrong width\n");   CnvDie(self->shell,"Wall Map has wrong width\n");
   
     update_wall (self, x, y + 1, 0, 1);      update_wall (self, x, y + 1, 0, 1);
Line 584
 
Line 584
   
     debug1("ClearCb() %s\n",self->emap->path);      debug1("ClearCb() %s\n",self->emap->path);
     if(self->read_only) return;      if(self->read_only) return;
     tmp = get_empty_map(self->emap->mapx,self->emap->mapy);      tmp = get_empty_map(self->emap->map_object->x,self->emap->map_object->y);
     copy_map (self->emap, tmp);       copy_map (self->emap, tmp);
     EdFreeMap(self);      EdFreeMap(self);
     self->emap = tmp;      self->emap = tmp;
Line 829
 
Line 829
  return;   return;
   
     sprintf (buf, "%dx%d+0+0",       sprintf (buf, "%dx%d+0+0",
       self->emap->mapx, self->emap->mapy);        self->emap->map_object->x, self->emap->map_object->y);
     switch (CnvPrompt ("ResizeScroll",      switch (CnvPrompt ("ResizeScroll",
         buf, path,"OK",NULL)) {          buf, path,"OK",NULL)) {
     case 1:      case 1:
  res = XParseGeometry (path, &sx, &sy, &x, &y);   res = XParseGeometry (path, &sx, &sy, &x, &y);
    
  if (!(res & WidthValue))   if (!(res & WidthValue))
      x = self->emap->mapx;       x = self->emap->map_object->x;
  if (!(res & HeightValue))   if (!(res & HeightValue))
      y = self->emap->mapy;       y = self->emap->map_object->y;
    
  if (!(res & XValue))   if (!(res & XValue))
      sx = 0;       sx = 0;
Line 1116
 
Line 1116
     self->shell = XtVaCreatePopupShell       self->shell = XtVaCreatePopupShell
       ("edit",topLevelShellWidgetClass, self->app->shell,        ("edit",topLevelShellWidgetClass, self->app->shell,
        XtNwidth,         XtNwidth,
        ((unsigned int)self->emap->mapx > self->app->res.mapWidth ?         ((unsigned int)self->emap->map_object->x > self->app->res.mapWidth ?
  self->app->res.mapWidth * FontSize :   self->app->res.mapWidth * FontSize :
  self->emap->mapx * FontSize ) + 16,/* kludge */   self->emap->map_object->x * FontSize ) + 16,/* kludge */
        XtNheight,         XtNheight,
        ((unsigned int)self->emap->mapy > self->app->res.mapHeight ?         ((unsigned int)self->emap->map_object->y > self->app->res.mapHeight ?
  self->app->res.mapHeight * FontSize :   self->app->res.mapHeight * FontSize :
  self->emap->mapy * FontSize ) + 46,/* kludge */   self->emap->map_object->y * FontSize ) + 46,/* kludge */
        XtNiconPixmap,bitmaps.edit,         XtNiconPixmap,bitmaps.edit,
        NULL);         NULL);
     vbox = XtVaCreateManagedWidget ("vbox", panedWidgetClass,      vbox = XtVaCreateManagedWidget ("vbox", panedWidgetClass,
Line 1534
 
Line 1534
        self->read_only)         self->read_only)
  return;   return;
   
     if (rect.width > self->emap->mapx - sx)      if (rect.width > self->emap->map_object->x - sx)
  rect.width = self->emap->mapx - sx;   rect.width = self->emap->map_object->x - sx;
     if (rect.width > (unsigned int)src->emap->mapx)      if (rect.width > (unsigned int)src->emap->map_object->x)
  rect.width = src->emap->mapx;   rect.width = src->emap->map_object->x;
   
     if (rect.height > self->emap->mapy - sy)      if (rect.height > self->emap->map_object->y - sy)
  rect.height = self->emap->mapy - sy;   rect.height = self->emap->map_object->y - sy;
     if (rect.height > (unsigned int)src->emap->mapy)      if (rect.height > (unsigned int)src->emap->map_object->y)
  rect.height = src->emap->mapy;   rect.height = src->emap->map_object->y;
   
     debug2("EditCopyRectangle() %s -> %s\n",EditGetPath(src),      debug2("EditCopyRectangle() %s -> %s\n",EditGetPath(src),
    EditGetPath(self));     EditGetPath(self));


Legend:
line(s) removed in v.1.5 
line(s) changed
 line(s) added in v.1.6

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:50