Changeset 1977 in Sophya for trunk


Ignore:
Timestamp:
May 2, 2002, 6:55:08 PM (23 years ago)
Author:
ansari
Message:

Correction bug PIGraphicX::SetClipRectangle() suite a l'introduction du GC specifique pour les markers - Reza 02/05/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pigraphx.cc

    r1899 r1977  
    1717static  PIXColor colpix[NMAXCOL];
    1818
    19 /*  GC pour DrawPixmap   */
    20 static GC dpxgc;
     19/*  GC pour DrawPixmap   
     20    static GC dpxgc;   Pas utile ?? - Reza 02/05/2002 */
    2121
    2222// #define DEBUG_PIBWDGX     Flag pour impression de debug etc ...
     
    412412    { XPutPixel(ximg, i, j, cmap->Color(*pix) );  pix++; }
    413413
    414 XPutImage(mdsp, xw, dpxgc, ximg, 0, 0, (int)x, (int)y, sx, sy);
     414XPutImage(mdsp, xw, DefGC(), ximg, 0, 0, (int)x, (int)y, sx, sy);
    415415
    416416delete[] ximg->data;
     
    701701xr.width = dx;  xr.height = dy;
    702702XSetClipRectangles(mDisp, DefGC(), 0, 0, &xr, 1, Unsorted);
    703 XSetClipRectangles(mDisp, dpxgc, 0, 0, &xr, 1, Unsorted);
     703XSetClipRectangles(mDisp, mMrkGC, 0, 0, &xr, 1, Unsorted);
    704704return;
    705705}
     
    709709{
    710710XSetClipMask(mDisp, DefGC(), None);
    711 XSetClipMask(mDisp, dpxgc, None);
     711XSetClipMask(mDisp, mMrkGC, None);
    712712return;
    713713}
     
    870870xgv.function = GXcopy;
    871871xgv.plane_mask = ~0;
    872 dpxgc = XCreateGC(mdsp, DefaultRootWindow(mdsp), GCFunction | GCPlaneMask, &xgv);
     872/* dpxgc = XCreateGC(mdsp, DefaultRootWindow(mdsp),
     873   GCFunction | GCPlaneMask, &xgv); Pas utile ?? - Reza 02/05/2002 */
    873874
    874875/* Coordonnees pour une etoile a 5 branches */
Note: See TracChangeset for help on using the changeset viewer.