Difference for crossedit/CrEdit.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 370
 
Line 370
       op;        op;
       i++, op = op->above);        i++, op = op->above);
  if (i > 0) {   if (i > 0) {
      int diff = self->crEdit.fontSize - FONTSIZE;       int diff = self->crEdit.fontSize - FontSize;
      int depth = diff / STACK_MIN + 1;       int depth = diff / STACK_MIN + 1;
      float dist = 0;       float dist = 0;
   
Line 408
 
Line 408
  }   }
  XDrawRectangle (XtDisplay(w),    XDrawRectangle (XtDisplay(w),
  XtWindow(w), self->crEdit.gc,   XtWindow(w), self->crEdit.gc,
  (int) xb, (int) yb, FONTSIZE -1, FONTSIZE -1);   (int) xb, (int) yb, FontSize -1, FontSize -1);
  xb -= dist;   xb -= dist;
  yb -= dist;   yb -= dist;
  op = op->above;   op = op->above;
Line 416
 
Line 416
  }   }
     } else { /* Normal map drawing routine */      } else { /* Normal map drawing routine */
         New_Face f;          New_Face f;
         if (displaymode==Dm_Pixmap) {          if (displaymode==Dm_Pixmap || displaymode==Dm_Png) {
           f = *(get_map_floor (self->crEdit.map, x, y)->face);            f = *(get_map_floor (self->crEdit.map, x, y)->face);
           FaceDraw (w, self->crEdit.gc, &f,            FaceDraw (w, self->crEdit.gc, &f,
                     x * self->crEdit.fontSize,                      x * self->crEdit.fontSize,
Line 440
 
Line 440
      f.fg = f.bg;       f.fg = f.bg;
      f.bg = tmp;       f.bg = tmp;
  }   }
  if (displaymode!=Dm_Pixmap || f.number != blank_face->number)   if (displaymode!=Dm_Pixmap || displaymode==Dm_Png ||
        f.number != blank_face->number)
      FaceDraw (w, self->crEdit.gc, &f,        FaceDraw (w, self->crEdit.gc, &f,
    x * self->crEdit.fontSize,      x * self->crEdit.fontSize,
    y * self->crEdit.fontSize);     y * self->crEdit.fontSize);
Line 546
 
Line 547
  i++, op = op->above);   i++, op = op->above);
   
     if (i > 0) {      if (i > 0) {
  int diff = self->crEdit.fontSize - FONTSIZE;   int diff = self->crEdit.fontSize - FontSize;
  int depth = diff / STACK_MIN;   int depth = diff / STACK_MIN;
  float dist = 0;   float dist = 0;
    
Line 955
 
Line 956
   
     /*** allocate gc ***/      /*** allocate gc ***/
     self->crEdit.gc = GCCreate (new);      self->crEdit.gc = GCCreate (new);
     self->crEdit.fontSize = FONTSIZE;      self->crEdit.fontSize = FontSize;
     SetSize(new);      SetSize(new);
     BorderOff(new);      BorderOff(new);
 }  }
Line 1005
 
Line 1006
          
     /*** stacking change ***/      /*** stacking change ***/
     if(self->crEdit.stacking != old->crEdit.stacking) {      if(self->crEdit.stacking != old->crEdit.stacking) {
  self->crEdit.fontSize = FONTSIZE + self->crEdit.stacking;   self->crEdit.fontSize = FontSize + self->crEdit.stacking;
  SetSize(new);   SetSize(new);
  redpy = True;   redpy = True;
     }      }


Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2

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