Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/sci In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26116/10.4/stable/main/finkinfo/sci
Added Files: gnuplot-aquaterm.patch Log Message: Oops; missed copying this over. --- NEW FILE: gnuplot-aquaterm.patch --- --- aquaterm.trm 2012/04/24 23:59:58 1.43.2.1 +++ aquaterm.trm 2012/04/25 04:12:08 1.43.2.2 @@ -719,16 +719,16 @@ TERM_PUBLIC void AQUA_image (unsigned int M, unsigned int N, coordval *image, gpiPoint *corner, t_imagecolor color_mode) { - float width = (corner[1].x - corner[0].x)/AQUA_RESOLUTION; - float height = (corner[0].y - corner[1].y)/AQUA_RESOLUTION; - float xPos = corner[0].x/AQUA_RESOLUTION; - float yPos = corner[1].y/AQUA_RESOLUTION; + NSRect rect_image, rect_clip; int bitmapSize = M*N; int targetSize = 3 * bitmapSize; int srcSize; unsigned char *bitmap; int i; + rect_image = NSMakeRect(corner[0].x/AQUA_RESOLUTION, corner[1].y/AQUA_RESOLUTION, (corner[1].x - corner[0].x)/AQUA_RESOLUTION, (corner[0].y - corner[1].y)/AQUA_RESOLUTION); + rect_clip = NSMakeRect(corner[2].x/AQUA_RESOLUTION, corner[3].y/AQUA_RESOLUTION, (corner[3].x - corner[2].x)/AQUA_RESOLUTION, (corner[2].y - corner[3].y)/AQUA_RESOLUTION); + bitmap = malloc(targetSize*sizeof(unsigned char)); if (bitmap != nil) { if (color_mode == IC_RGB) { @@ -752,10 +752,13 @@ } else { NSLog(@"Unknown bitmap format"); } + + [adapter setClipRect:rect_clip]; [adapter addImageWithBitmap:bitmap size:NSMakeSize(M, N) - bounds:NSMakeRect(xPos, yPos, width, height)]; + bounds:rect_image]; free(bitmap); + [adapter setDefaultClipRect]; } return; } ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs