pike.git / lib / modules / _Image_PS.pmod

version» Context lines:

pike.git/lib/modules/_Image_PS.pmod:16:    string bbox;    int llx, lly;    int urx, ury;    fd = Stdio.File();    fd2 = fd->pipe();       fd3 = Stdio.File();    fd4 = fd3->pipe();       if(data[0..3] != "%!PS") -  error("This is not a postscrip file!\n"); +  error("This is not a postscript file!\n");       if(sscanf(data, "%*s\n%%%%BoundingBox: %s\n", bbox) == 2)    {    int x0,x1,y0,y1;    sscanf(bbox, "%d %d %d %d", x0,y0,x1,y1 );    llx = (int)((x0/72.0) * (options->dpi||100)+0.01);    lly = (int)((y0/72.0) * (options->dpi||100)+0.01);    urx = (int)((x1/72.0) * (options->dpi||100)+0.01);    ury = (int)((y1/72.0) * (options->dpi||100)+0.01);    }