Difference for crossedit/CrUtil.c from version 1.2 to 1.3


version 1.2 version 1.3
Line 19
 
Line 19
  * be removed by better structuring of program.   * be removed by better structuring of program.
  */   */
 void FaceDraw (Widget w, GC gc, New_Face *face, int x, int y) {  void FaceDraw (Widget w, GC gc, New_Face *face, int x, int y) {
     XChar xbuf;  
   
     if(displaymode==Dm_Pixmap || displaymode==Dm_Png) {      if(displaymode==Dm_Png) {
  XSetClipMask(XtDisplay (w), gc, masks[face->number]);   XSetClipMask(XtDisplay (w), gc, masks[face->number]);
  XSetClipOrigin(XtDisplay (w), gc, x, y);   XSetClipOrigin(XtDisplay (w), gc, x, y);
  XCopyArea(XtDisplay (w), pixmaps[face->number],   XCopyArea(XtDisplay (w), pixmaps[face->number],
    XtWindow(w), gc, 0, 0, FontSize, FontSize, x, y);     XtWindow(w), gc, 0, 0, FontSize, FontSize, x, y);
     } else {  
  if (HAS_COLOUR(w)) {  
      XSetForeground (XtDisplay (w), gc, discolor[face->fg].pixel);  
      XSetBackground (XtDisplay (w), gc, discolor[face->bg].pixel);  
  }  
  else {  
      XSetForeground (XtDisplay (w), gc, BlackPixel(XtDisplay(w),   
  XScreenNumberOfScreen(XtScreen(w))));  
      XSetBackground (XtDisplay (w), gc, WhitePixel(XtDisplay(w),  
  XScreenNumberOfScreen(XtScreen(w))));  
  }  
  if (displaymode==Dm_Bitmap) {  
      XCopyPlane(XtDisplay (w), pixmaps[face->number],   
         XtWindow(w), gc, 0, 0, FontSize, FontSize, x, y, 1);  
  } else {  
      xbuf = FontindexToXChar(face->number);  
      XDRAWIMAGESTRING (XtDisplay (w),XtWindow(w), gc,   
        x, y + 24, &xbuf, 1);  
   
  }  
     }      }
 }  }
   
Line 59
 
Line 38
  * be removed by better structuring of program.   * be removed by better structuring of program.
  */   */
 GC GCCreate (Widget w) {  GC GCCreate (Widget w) {
     XGCValues values;  
     GC gc;      GC gc;
     if (displaymode!=Dm_Font)  
  gc= XtAllocateGC (w, 0, 0L, NULL, GCBackground | GCForeground, 0);   gc= XtAllocateGC (w, 0, 0L, NULL, GCBackground | GCForeground, 0);
     else {  
  values.font = XLoadFont (XtDisplay(w),FONTNAME);  
  gc= XtAllocateGC   
  (w, 0, GCFont, &values, GCBackground | GCForeground, 0);  
     }  
     XSetGraphicsExposures(XtDisplay(w), gc, False);      XSetGraphicsExposures(XtDisplay(w), gc, False);
    return gc;     return gc;
 }  }


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

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